Jump to content
  • 0

R> for Bounty Hunter Script


Jb Roxas

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

looking for bounty hunter

if the player reach 10 kill streak

Note: the killing points will only add if they kill the player on guild_vs5 map <<--- that is my pvproom ^^

The npc will add their name to the list of wanted player

for example:

NPC WANTED LIST

1st. Emistry

if you kill emistry u will receive 10 TCG

2nd. Brian

if you kill Brian u will receive 7 TCG

3rd. Goddameit

if you kill Godammet u will receive 5 TCG

Edited by Jb Roxas
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

Here try this just made it a while ago.

//made by deathscythe13
- script Bounty -1,{
OnInit:
set $wantedlistlength,10;	// bounty length
set .rewarditem, 7227;	//reward item id
set .killstreak, 10; // kill streak before gets to bounty
end;
OnPCKillEvent:
getmapxy.@map$,.@x,.@y,0;
if(getcharid(3)==killedrid) end;
if(.@map$ != "guild_vs5") end;

for(set .@i,0; .@i < $wantedlistlength && rid2name(killedrid)!=$wantedlist$[.@i]; set .@i, .@i+1);
if(.@i < $wantedlistlength && rid2name(killedrid)==$wantedlist$[.@i]) {
 set .@price , 10 - (.@i);   // amount of reward (i dunnoe the calc sorry)
 getitem .rewarditem,.@price;  
 dispbottom "You have killed a bounty!";
 for(set .@remove,.@i; .@remove < $wantedlistlength; set .@remove, .@remove+1) {
  set $wantedlist$[.@remove], $wantedlist$[.@remove+1];  
  set $wantedliststreak[.@remove], $wantedliststreak[.@remove+1];  
 }		  
 announce rid2name(killedrid)+" has been removed in the bounty list!",0;	
}
else {
 set killerstreak, killerstreak+1;
 dispbottom "Kill Streak: "+killerstreak;
}


if(killerstreak >= .killstreak) {
 for(set .@i, 0; .@i < $wantedlistlength && $wantedliststreak[.@i] > killerstreak; set .@i, .@i+1);

  if(.@i < $wantedlistlength && killerstreak >= $wantedliststreak[.@i]) {
 for(set .@x ,0; .@x < $wantedlistlength && $wantedlist$[.@x]!=strcharinfo(0); set .@x, .@x+1);
  if(.@x < $wantedlistlength && $wantedlist$[.@x]==strcharinfo(0)) {
   for(set .@already, .@x; .@already < $wantedlistlength; set .@already, .@already+1) {
	set $wantedlist$[.@already], $wantedlist$[.@already+1];
	set $wantedliststreak[.@already], $wantedliststreak[.@already+1];
   }
  }

 for(set .@x, ($wantedlistlength-1); .@x > .@i ; set .@x, .@x-1) {
  set $wantedlist$[.@x], $wantedlist$[.@x-1];
  set $wantedliststreak[.@x], $wantedliststreak[.@x-1];
 }
announce strcharinfo(0)+" is now in bounty list top "+(.@i+1)+"!",0;

set $wantedlist$[.@i], strcharinfo(0);
set $wantedliststreak[.@i], killerstreak;

  }
}

attachrid(killedrid);
if(killerstreak) {
 set killerstreak, 0;
 dispbottom "Your streak has been reset because you died!";
}

end;
}

prontera,156,180,4 script NPC WANTED LIST 100,{

mes "NPC WANTED LIST";
for (set .@i,0; .@i < $wantedlistlength; set .@i, .@i+1) {
 set .@no, .@i+1;
 mes .@no+".) "+$wantedlist$[.@i]+" Streak: "+$wantedliststreak[.@i];
}
close;
}

Edited by deathscythe13
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/22/18
  • Last Seen:  

can you help me with this. the bounty will increase if i kill more players

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/13/12
  • Last Seen:  

I try it, but my NPC don't come out. Try to fix some, but nothing happen. Sorry to ask rude, but can you re-check? I really nid this script. It's a great script.. ^^

thx.. :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

hmm post your errors :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/13/12
  • Last Seen:  

I didn't use offline. I use online straight away. I copy the script as it is. then add to script_custom..

When i load the npc, it didn't come out. Is there any way that i can tell you where the error is?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

what do you mean offline and online? o.o check your mapserver for the errors.

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...