Jump to content
  • 0

PvP Rewards


Mang-Berto

Question


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  139
  • Reputation:   2
  • Joined:  11/15/11
  • Last Seen:  

Good day, does anyone here has a pvp reward script, when a player kills another player in a pvp room he will receive valor badge? because i found a script of pvp rewards but it's not working on my server. please help. thanks

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

- script Sample -1,{
OnPCKillEvent:
if( strcharinfo(3) == "mapname" && killedrid != getcharid(0) ){
getitem 7539,1;
dispbottom "Gained 1 Items.";
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   4
  • Joined:  04/09/12
  • Last Seen:  

Sir about that script.. the pally's are Spamming Grand cross to get some item in pvp room.. there killing there selves

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

I should probably just release this... o.o;


-    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],"pvp_y_1-2","pvp_y_2-2","pvp_y_3-2";
   set .NoFarm,1;            // End script for repeated kills? (1:yes / 0:no)
   set .Item, 0;            // 0 to disable
   set .Cash$, "#CASHPOINTS";    // "" to disable
   end;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...