Script sharpening enemy

07/16/2011 01:42 I am a Russian#1
[Only registered and activated users can see links. Click Here To Register...]

Run the script / PVP START
Stop Script / PVP STOP

Here's the script:
PHP Code:
/ / Script for the appearance of sharpening.
/ / 
Run SendPMessage ("PVP""START")
/ / 
Stop SendPMessage ("PVP""STOP")


var 
startstopnameCharnamestring;
    
PIDlestartlstoplnamelCharSIDinteger;
    
flagboolean;

Procedure MsgInfo (msgstring);
begin
     gSys
.EnSendC (FormatPck ('% hcdacha', [$ 0A0202,,'[!]'FStr (16), Length (msg) + 2, $ 203Amsg # 0]));
     
gsys.sleep (15);
end;

procedure OnCreate;
begin
     le
: = 23;
     
start: = 'START';
     
startl: = length (start);
     
stop: = 'STOP';
     
stopl: = length (stop);
     
name: = 'PVP';
     
namel: = length (name);
     
flag: = false;
end;

BEGIN
     
if length (_gBuff) <4 then exit;
     
PID: = GInt (_gBuff3,2);

     if 
not (_gFromServthen
     
case PID of
       
0302begin
                   
if strcmp (copy (_gBuff5namel), namethen
                   begin
                        
if strcmp (copy (_gBufflestartl), startthen flag: = true;
                        if 
strcmp (copy (_gBufflestopl), stopthen flag: = false;
                        
gBlockPacket;
                   
end;
              
end;

       $ 
1A0Dbegin
                   CharSID
: = GInt (_gBuff7,2);
                   
gSys.SendS (FormatPck ('% hhh', [$ 1E03CharSID0]));
              
end;
     
end;
     if 
_gFromServ then
     
case PID of
       
660Dbegin
                   MsgInfo 
('/ PVP START to run the script');
                   
MsgInfo ('/ PVP STOP to stop the script');
                   
MsgInfo ('----------');
              
end;

       $ 
1F03begin
                   
if flag and (GInt (_gBuff5,2) = CharSIDthen
                   begin
                        Charname
: = (copy (_gBuff46,17));
                        
gSys.EnSendC (FormatPck ('% hcdacha', [$ 0A0202,,'[!]'FStr (16), 19, $ 203ACharname # 0]));
                        
gSys.EnSendC (FormatPck ('% hcdachacc', [$ 0A0202,,'[!]'FStr (16), 10, $ 203A'jacket +', (GInt (_gBuff19,1) + 48), 0]));
                        
gSys.EnSendC (FormatPck ('% hcdachacc', [$ 0A0202,,'[!]'FStr (16), 9, $ 203A'pants +', (GInt (_gBuff22,1) + 48), 0]));
                        
gSys.EnSendC (FormatPck ('% hcdachacc', [$ 0A0202,,'[!]'FStr (16), 12, $ 203A'gloves +', (GInt (_gBuff25,1) + 48), 0]));
                        
gSys.EnSendC (FormatPck ('% hcdachacc', [$ 0A0202,,'[!]'FStr (16), 11, $ 203A'boots +', (GInt (_gBuff28,1) + 48), 0]));
                        
gSys.EnSendC (FormatPck ('% hcdachacc', [$ 0A0202,,'[!]'FStr (16), 9, $ 203A'header +', (GInt (_gBuff31,1) + 48), 0]));
                        
gSys.EnSendC (FormatPck ('% hcdachacc', [$ 0A0202,,'[!]'FStr (16), 7, $ 203A'shield +', (GInt (_gBuff34,1) + 48), 0]));
                        
gSys.EnSendC (FormatPck ('% hcdachacc', [$ 0A0202,,'[!]'FStr (16), 10, $ 203A'weapon +', (GInt (_gBuff37,1) + 48), 0]));
                        
MsgInfo ('----------');
                   
end;
              
end;
      
end;
END
07/16/2011 04:26 spaknotboys#2
so this code will show the information about that targeted char??
more info plox. :)
07/16/2011 07:19 I am a Russian#3
The script will show all the sharpening of the enemy