rickzera Posted January 31, 2023 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 51 Reputation: 3 Joined: 08/01/12 Last Seen: Wednesday at 09:22 PM Share Posted January 31, 2023 I need a script that gives items whenever a player kills another player 1 kill = 1 item 3 kills = 3 items 5 kills = 5 items I am using this script - script PCKill -1,{ OnPCKillEvent: if (killedrid == getcharid(3)) end; for(set .@i,0; .@i<getarraysize(.maps$); set .@i,.@i+1) if (strcharinfo(3)==.Maps$[.@i]) { if (.NoFarm) { if (killedrid == @last_kill) end; set @last_kill, killedrid; } if (.Item) getitem .Item, 1; if (.Cash$ != "") { setd .Cash$, getd(.Cash$)+1; dispbottom "Gained a kill point! Total: "+getd(.Cash$); } break; } end; OnInit: setarray .Maps$[0],"prontera"; set .NoFarm,0; // End script for repeated kills? (1:yes / 0:no) set .Item, 607; // 0 to disable set .Cash$, ""; // "" to disable end; } Quote Link to comment Share on other sites More sharing options...
Question
rickzera
I need a script that gives items whenever a player kills another player
1 kill = 1 item
3 kills = 3 items
5 kills = 5 items
I am using this script
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.