Jump to content

  •  

Photons

Member Since 28 Mar 2016
Offline Last Active Aug 05 2018 03:27 PM
-----

Topics I've Started

Unknown command when players are using @

06 April 2016 - 03:36 AM

http://herc.ws/board...ail-like-admin/ << A code like this. But instead of lvl 99 gms below i want it to be like a normal player .

 

Like this screenshot

Tried this code

But still fails

if ( pc_get_group_level(sd) > 0 ) {							
sprintf(output, msg_txt(153), command);							
clif->message(fd, output);							
return true;						
}						
return false;				
} 
else					
return false;/* display as normal message */			
}

 


Abuse kill "Stop killing player"

04 April 2016 - 09:05 AM

 

-    script    killing    -1,{
OnPCKillEvent:
    set .@counttopunish, 3; // 3 times kill in same minute = OUT
    if ( killedrid == getcharid(3) ) end;
    attachrid killedrid;
    .@charid = getcharid(0);
    attachrid killerrid;
    setd "@count"+ gettime(2) +"_"+ killedrid, getd( "@count"+ gettime(2) +"_"+ killedrid ) +1;
    if ( getd( "@count"+ gettime(2) +"_"+ killedrid ) < .@counttopunish )
        getitem2 7420, 1,1,0,0, 254, 0, .@charid % pow(2,16), .@charid / pow(2,16);
    else {
        announce strcharinfo(0) +", Stop killing "+ rid2name(killedrid) +" !!!", 0;
        warp "Save", 0,0;
    }
    end;
}
 

 


This is from annieruru~ script but instead of counting the skulls killed by a player. i want it to count the kills of a player in one minute can someone help me? thanks