关于白猪插件制作套装,是不是里面套装属性随便写?可以写那些属性,这个手册里面写了暴击率+10%
游客 2023-7-19

QQ图片20230719232224.webp

最新回复 (7)

  • 2023-7-19 2

    这只是让你显示,。 要实现套装属性要写脚本

     

    比如下面的脚本,  这个脚本利用了盘古插件的高级属性

    {$I gaojishuxing.pas}
    
    procedure TZdemo();
    var toukui , wuqi , xunzhang , douli , yifu , yupei , zuos , yous , zuoj , yuoj , xuezi , yaodai , fudu , xianglian,dunpai : string;
    
    begin        
    	//0衣服 1武器 2勋章 3项链 4头盔 5左手镯 6右手镯  7左戒指 8右戒指  9毒符 10腰带 11靴子 13斗笠  29血石 
    	//14玉佩(29)  15 盾牌(34)
    	toukui := This_Player.GetItemNameOnBody(4); 
    	yupei := This_Player.GetItemNameOnBody(14);
    	zuos := This_Player.GetItemNameOnBody(5);
    	yous := This_Player.GetItemNameOnBody(6);
    	zuoj := This_Player.GetItemNameOnBody(7);
    	yuoj := This_Player.GetItemNameOnBody(8);
    	xuezi := This_Player.GetItemNameOnBody(11);
    	yaodai := This_Player.GetItemNameOnBody(10);
    	xianglian := This_Player.GetItemNameOnBody(3);
    	wuqi := This_Player.GetItemNameOnBody(1);
    	yifu := This_Player.GetItemNameOnBody(0);
    	fudu := This_Player.GetItemNameOnBody(9);
    	dunpai := This_Player.GetItemNameOnBody(15);
    	douli := This_Player.GetItemNameOnBody(13);
        xunzhang := This_Player.GetItemNameOnBody(2);
    	 if  (dunpai = '一级盾牌') then  
     begin
    	if This_player.GetV(194,1) <> 1 then
    	begin
    	This_player.setV(194,1,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+1));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+1));
    	end;
    	end else
    	begin
    	if This_player.GetV(194,1) = 1 then
    	begin
    	This_player.setV(194,1,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-1));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-1));
    	end;
    	end;
     if  (dunpai = '二级盾牌') then  
     begin
    	if This_player.GetV(194,2) <> 1 then
    	begin
    	This_player.setV(194,2,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+2));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+2));
    	end;
    	end else
    	begin
    	if This_player.GetV(194,2) = 1 then
    	begin
    	This_player.setV(194,2,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-2));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-2));	
    	end;
    	end;	
     if  (dunpai = '三级盾牌') then  
     begin
    	if This_player.GetV(194,3) <> 1 then
    	begin
    	This_player.setV(194,3,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+3));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+3));
    	ServerSay('玩家【' + This_Player.Name + '】chenggong!', 2);	
    	end;
    	end else
    	begin
    	if This_player.GetV(194,3) = 1 then
    	begin
    	This_player.setV(194,3,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-3));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-3));	
    	 ServerSay('玩家【' + This_Player.Name + '】quxia!', 2);		
    	end;
    	end;	
     if  (dunpai = '四级盾牌') then  
     begin
    	if This_player.GetV(194,4) <> 1 then
    	begin
    	This_player.setV(194,4,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+4));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+4));
    	end;
    	end else
    	begin
    	if This_player.GetV(194,4) = 1 then
    	begin
    	This_player.setV(194,4,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-4));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-4));	
    	end;
    	end; 
     if  (dunpai = '五级盾牌') then  
     begin
    	if This_player.GetV(194,5) <> 1 then
    	begin
    	This_player.setV(194,5,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+5));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+5));
    	end;
    	end else
    	begin
    	if This_player.GetV(194,5) = 1 then
    	begin
    	This_player.setV(194,4,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-5));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-5));	
    	end;
    	end; 
     if  (dunpai = '六级盾牌') then  
     begin
    	if This_player.GetV(194,6) <> 1 then
    	begin
    	This_player.setV(194,6,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+6));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+6));
    	end;
    	end else
    	begin
    	if This_player.GetV(194,6) = 1 then
    	begin
    	This_player.setV(194,6,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-6));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-6));
    	end;
    	end;	
     if  (dunpai = '七级盾牌') then  
     begin
    	if This_player.GetV(194,7) <> 1 then
    	begin
    	This_player.setV(194,7,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+7));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+7));
    	end;
    	end else
    	begin
    	if This_player.GetV(194,7) = 1 then
    	begin
    	This_player.setV(194,7,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-7));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-7));	
    	end;
    	end;	
     if  (dunpai = '八级盾牌') then  
     begin
    	if This_player.GetV(194,8) <> 1 then
    	begin
    	This_player.setV(194,8,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+8));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+8));
    	end;
    	end else
    	begin
    	if This_player.GetV(194,8) = 1 then
    	begin
    	This_player.setV(194,8,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-8));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-8));
    	end;
    	end;	
     if  (dunpai = '九级盾牌') then  
     begin
    	if This_player.GetV(194,9) <> 1 then
    	begin
    	This_player.setV(194,9,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+9));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+9));
    	end;
    	end else
    	begin
    	if This_player.GetV(194,9) = 1 then
    	begin
    	This_player.setV(194,9,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-9));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-9));	
    	end;
    	end;	
     if  (dunpai = '十级盾牌' )  then  
     begin
    	if This_player.GetV(194,10) <> 1 then
    	begin
    	This_player.setV(194,10,1);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)+10));
    	This_Player.setV(22,5,(This_Player.getV(22,5)+10));
    	end;
    	end
    	else
    	begin
    	if This_player.GetV(194,10) = 1 then
    	begin
    	This_player.setV(194,10,0);
    	This_Player.setV(21,5,(This_Player.GetV(21,5)-10));
    	This_Player.setV(22,5,(This_Player.getV(22,5)-10));	
    	end;
    	end;	

     

  • 游客
    2023-7-20 3

    如何知道setV(194,10,0),getV等数字的具体含义,网上没有私人变量里面的数字含义


  • 2023-7-20 4

    0-255,这是自定义,首先你要看你版本的变量,有没有使用过,如果没试用过就可以拿来使用,如果要用使用过的,你要知道他使用的意思  s好像是私人变量,g是全局变量    194,100,0   这是我自己写的    194,100  是定义变量名,0是这个变量的值


  • 2023-7-20 5

    在我群里吗,@我问

  • 游客
    2023-7-20 6

    怎么看有没有使用过  .  我不知道你的群号


  • 2023-7-20 7

    974343395    这个不好看使用没,所以最好设置大一点

  • 游客
    2023-7-22 8

    制作套装攻略

    1  要开启盘古引擎,(  高级属性  ),穿戴触发

    2  把盘古的2个DLL需要懂的放到D盘GS1目录下,(怕出麻烦)

    3  盘古里面的PsMapQuest,RunQuest.pas文件里面的功能代码函数要写进同一个D盘文件名,而且要引用套装脚本名字

    4  套装脚本要引用高级属性脚本,而且把高级脚本里面的函数写到套装脚本末尾处

    5  套装脚本与高级属性脚本放到  D:\mud2.0\Mir200\Envir\CommonScripts  下

返回