Hatake Kakashi Posted August 19, 2013 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Share Posted August 19, 2013 i'am a one piece fanatic, so i tried to suggest this npc event. if you know and you're a fan of one piece you will guess what i think.. if you kill one player you will have a prize on your head like a wanted level. there's an announcer, like for example "player 1 killed player 2 and he/she has a 1 million zeny prize on his/her head WANTED LEVEL 1". Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 19, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 19, 2013 (edited) I did not test this yet, but this should do the following: 1. When [ P.A ] kills [ P.B ], [ P.A ] will gain a +10,000z bounty (ex. 0 + 10,000 OR 10,000 + 10,000). Also [ P.B ] will have his/her bounty set to 0 for dieing. 2. It will then announce that [ P.A ] killed [ P.B ] and his or her bounty is: X0,000 zeny, Wanted Level = Zeny / 10,000. ( 10K zeny = Wanted Level 1 | 250K Zeny = Wanted Level 25 ). 3. Additionally, it should also put commas ( , ) where they are supposed to, so people see the 10,000 as i just typed it rather than 10000. (For looks only. *Note - I did not test the coding for it but should work). 4. And ofcourse [ P.A ] gets the zeny reward for killing [ P.B ]. - script bounty_script -1,{ OnPCKillEvent: if(killedrid == killerrid){end;} //Prevent Suicide. attachrid(killedrid); set .zeny, getd(".bounty"+ getcharid(0) +""); setd ".bounty"+ getcharid(0) +"",0; //Sets Bounty to 0 if they die. attachrid(killerrid); set zeny,zeny + .zeny; setd ".bounty"+ getcharid(0) +"", getd(".bounty"+ getcharid(0) +"") + 10000; //Sets Bounty to +10,000 per kill. set .@a$, ""+ getd(".bounty"+ getcharid(0) +"") +""; set .@b, getstrlen(.@a$); while(.@c < .@ {insertchar(.@a$,",",(.@b - 3)); set .@c,.@c+3;} announce "["+ rid2name(killerrid) +"] has killed ["+ rid2name(killedrid) +"]. "+ (Sex?"He":"She") +" has a bounty of: "+ .@a$ +" zeny! [ WANTED LEVEL "+ (getd(".bounty"+ getcharid(0) +"") / 10000) +" ]",bc_blue|bc_all; end; } Edited August 17, 2014 by GmOcean Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted August 19, 2013 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted August 19, 2013 can you fix it? when announce its a account id number not char. name. thanks and when i kill the killer that has a bounty on his/her head theres no announce and i dont have zeny from kill him/her. sorry for my english.. hehe Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 19, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 19, 2013 Oh duh lol. Sorry forgot about that, I updated the script to show the names. Also, i changed a variable to an NPC var, to try and solve the NO zeny issue. As for why your not getting an announce, I don't see why your not getting one. I'd test it BUT, i don't have a server up and running to do so. Kinda just scripting on Brain Power lol, thats all the checks I can do, maybe someone else will be able to further fix this. Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted June 9, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted June 9, 2014 (edited) please fix.. 1: i need to lower bounty prize of 1m into 10k only 2: not ryt name announce.. i test this script.. yes its working but the problem is not ryt for the announce of names.. for example.. Player 1, Player 2 and Player 3 P1 and P2 killing ea. other then P2 killed by player P1 but when announce.. it says [P3] has killed [P2]. he has a bounty of 1000000 zeny [WANTED LEVEL 1] so why name of P3 appears but P1 kill P2 not P3.. thank you... please help help help.. thank you. Edited June 9, 2014 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
alone20 Posted June 12, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 34 Reputation: 0 Joined: 05/05/14 Last Seen: July 10, 2020 Share Posted June 12, 2014 its a cool event, anyon can help him with this? Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted June 15, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted June 15, 2014 up Quote Link to comment Share on other sites More sharing options...
Unknown Posted June 15, 2014 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 109 Reputation: 2 Joined: 09/07/12 Last Seen: October 21, 2016 Share Posted June 15, 2014 up Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted August 16, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted August 16, 2014 up up for this script. Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 17, 2014 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 17, 2014 (edited) Okay, I updated the script in my original post. Should fix the name display, as well as reduced zeny from 1m to 10k. As for why you said, P3 killed P2 instead of P1, I have no idea. The script should run only when a player is killed by another player. Then 2 variables are set, killerrid (Person who killed someone), and killedrid (Person who died). The script then converts these 2 variables into the player's names and runs the announcement as such. So if your seeing P3 instead of P1, then I can only assume P3 indeed did kill P2. Edited August 17, 2014 by GmOcean Quote Link to comment Share on other sites More sharing options...
greyman15 Posted August 17, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 26 Reputation: 2 Joined: 06/28/14 Last Seen: December 9, 2021 Share Posted August 17, 2014 i've got error in the line 14 ->{insertchar(.@a$,",",(.@b - 3)); set .@c,.@c+3;} Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 17, 2014 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 17, 2014 What emulator are you using? Because, it was working for them aside from the announcing part, and all I changed was the zeny from 1m to 10k, which is as simple as removing 2 0s. So Nothing else was changed, it should be working. Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted August 17, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted August 17, 2014 (edited) omg! script got a problem 1st: error in announce.. 2nd: i setup 10k will die but 10k not remove <<< sorry for wrong grammar 3rd: if there's no 10k they cannot enter Bounty PVP Room at guild_vs3. <<< i put bounty pvp room on guild_vs3 4th: this script will enable when u are in guild_vs3 map only. 5th: is there any possible can detect same ip? coz i think they will make this for fast farming.. i have my dual login server and they can do dual log. so they do this again and again. picture error in announce.. Edited August 17, 2014 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 18, 2014 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 18, 2014 Okay, that is really weird. I just got my test server back up and running, I'll run it through a few tests and see if I can replicate the problem. I'll post back when I figure this out. Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted August 18, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted August 18, 2014 ok ok.. thank master. Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 18, 2014 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 18, 2014 Okay, add this to your warper: if (zeny < 10000){mes "You need a minimum of 10,000 zeny to enter this PVP map."; close;} Then here is the script.1. Announcement is now fixed.2. If you die, you will lose 10,000z (Even if your bounty is 1,000,000z you will only lose 10,000 when you die).3. This script will only work on the given map ( guild_vs3 )4. When you die on this map and lose 10,000z, you will be warped out of the map, if you don't have atleast 10,000z more.5. If you try to kill someone who shares the same IP as you (dual clienting) you will be given a warning. If you do this 3x in a row, they will be banned for 5days for cheating (You can change this). There will also be a public announcement stating that Player X was banned for 5days because of cheating.*NOTE - Relogging before Player X cheats 3x will reset the counter.*6. Nothing happens when committing suicide. This is so you can still get a bounty from killing someone with GrandCross but also dying in the process. (you get 10k for killing, but nothing from dying, this will result in only 10k, which is normal).7. Displays zeny earned with " , ". So 10000 will look like: 10,000 - script bounty_script -1,{ OnPCLoginEvent: query_sql("select last_ip from `login` WHERE account_id = "+ getcharid(3) +""),.@ip$; setd ".ip"+getcharid(0)+"$",.@ip$; end; OnPCLogoutEvent: setd ".ip"+getcharid(0)+"$",""; end; OnPCKillEvent: if( strcharinfo(3) != "guild_vs3" ){end;} set .ip1$, getd(".ip"+getcharid(0)+"$"); if(killedrid == getcharid(3)){end;} //Prevent Suicide. attachrid(killedrid); if( .ip1$ == getd(".ip"+getcharid(0)+"$") ) {dispbottom "Cheating will not be tolerated. Repeated offenses will result in a public denounciation, and a 5day ban."; set @repeatcheat,@repeatcheat +1; if(@repeatcheat >=3){announce ""+strcharinfo(0)+" has been caught cheating and has been banned for 5days.",bc_blue|bc_all; atcommand "@ban +5d "+strcharinfo(0)+"";} end;} //Prevents same IP Address Farming if( zeny >= 10000 ){set zeny,zeny-10000;} set .zeny, getd(".bounty"+ getcharid(0) +""); setd ".bounty"+ getcharid(0) +"",0; //Sets Bounty to 0 if they die. if(zeny < 10000){warp "SavePoint",0,0; end;} //Warps them out of map if they no longer have zeny. attachrid(killerrid); set zeny,zeny + .zeny; setd ".bounty"+ getcharid(0) +"", getd(".bounty"+ getcharid(0) +"") + 10000; //Sets Bounty to +10,000 per kill. set .@a$, ""+ getd(".bounty"+ getcharid(0) +"") +""; set .@b, getstrlen(.@a$); while(.@c < .@ {set .@a$,insertchar(.@a$,",",(.@b - 3));set .@b,.@b-3; set .@c,.@c+3;} announce "["+ strcharinfo(0) +"] has killed ["+ rid2name(killedrid) +"]. "+ (Sex?"He":"She") +" has a bounty of: "+ .@a$ +" zeny! [ WANTED LEVEL "+ (getd(".bounty"+ getcharid(0) +"") / 10000) +" ]",bc_blue|bc_all; end; *NOTE - This script requires a server restart to work properly (DO NOT USE with @reloadscript).* If you use @reloadscript with this script, everyone will have the EXACT same IP address, and will be declared cheaters resulting in the aforementioned 5day ban. Quote Link to comment Share on other sites More sharing options...
greyman15 Posted August 19, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 26 Reputation: 2 Joined: 06/28/14 Last Seen: December 9, 2021 Share Posted August 19, 2014 thanks Quote Link to comment Share on other sites More sharing options...
Scotch Posted August 19, 2014 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 118 Reputation: 0 Joined: 09/19/12 Last Seen: April 2, 2016 Share Posted August 19, 2014 How about on normal PVP and for War of Emperium? Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 19, 2014 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 19, 2014 @Scotch - What do you mean? You want this to work for normal PVP and WoE? Or did you want this to be disabled during WoE? If you wanted it to work for Both PVP and WoE all you need to do is change this line: if( strcharinfo(3) != "guild_vs3" ){end;} INTO //if( strcharinfo(3) != "guild_vs3" ){end;} If you wanted to disable it during WoE add this line above the line shown above. if( agitcheck() || agitcheck2() ){end;} Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted August 19, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted August 19, 2014 (edited) not working master Ocean why its not working? i tried to copy this script and put it on bounty.txt on my custom folder. and here's my script_custom.conf npc: npc/custom/bounty.txt and i restart my server, and going in my pvp room and i enter guild_vs3 map. but when i die, there's no announce and not added 10k for the killer. thank you more power. here's i copy script - script bounty_script -1,{ OnPCLoginEvent: query_sql("select last_ip from `login` WHERE account_id = "+ getcharid(3) +""),.@ip$; setd ".ip"+getcharid(0)+"$",.@ip$; end; OnPCLogoutEvent: setd ".ip"+getcharid(0)+"$",""; end; OnPCKillEvent: if( strcharinfo(3) != "guild_vs3" ){end;} set .ip1$, getd(".ip"+getcharid(0)+"$"); if(killedrid == getcharid(3)){end;} //Prevent Suicide. attachrid(killedrid); if( .ip1$ == getd(".ip"+getcharid(0)+"$") ) {dispbottom "Cheating will not be tolerated. Repeated offenses will result in a public denounciation, and a 5day ban."; set @repeatcheat,@repeatcheat +1; if(@repeatcheat >=3){announce ""+strcharinfo(0)+" has been caught cheating and has been banned for 5days.",bc_blue|bc_all; atcommand "@ban +5d "+strcharinfo(0)+"";} end;} //Prevents same IP Address Farming if( zeny >= 10000 ){set zeny,zeny-10000;} set .zeny, getd(".bounty"+ getcharid(0) +""); setd ".bounty"+ getcharid(0) +"",0; //Sets Bounty to 0 if they die. if(zeny < 10000){warp "SavePoint",0,0; end;} //Warps them out of map if they no longer have zeny. attachrid(killerrid); set zeny,zeny + .zeny; setd ".bounty"+ getcharid(0) +"", getd(".bounty"+ getcharid(0) +"") + 10000; //Sets Bounty to +10,000 per kill. set .@a$, ""+ getd(".bounty"+ getcharid(0) +"") +""; set .@b, getstrlen(.@a$); while(.@c < .@ {set .@a$,insertchar(.@a$,",",(.@b - 3));set .@b,.@b-3; set .@c,.@c+3;} announce "["+ strcharinfo(0) +"] has killed ["+ rid2name(killedrid) +"]. "+ (Sex?"He":"She") +" has a bounty of: "+ .@a$ +" zeny! [ WANTED LEVEL "+ (getd(".bounty"+ getcharid(0) +"") / 10000) +" ]",bc_blue|bc_all; end; Edited August 19, 2014 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 20, 2014 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 20, 2014 (edited) It seems, I forgot to paste a } at the end of the script. Add that to the bottom and it should work. Also, you only get 10k IF the player you kill has 10k. Which they should if you added what I said to your warper. Edited August 20, 2014 by GmOcean Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted August 20, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted August 20, 2014 its working now.. but can you please put a additional 10k like this.. 1st kill = 10k 2nd kill = 20k 3rd kill = 30k 4th kill = 40k 5th kill = 50k until you get a high zeny if you kill a lot of players. your killer will get your high zeny kill. and when you die your kill will decrease i mean back to 0... ex. if i killed 7 players so i have 70k from other players if they have 10k ea. players ok? and when a player kill me he/she got my 70k from me, and when i kill him/her my 70k is back.. and put a every recon you kills. i mean back to zero again from the start. so he/she save zeny from kills.. SORRY FOR MY WRONG GRAMMAR. Quote Link to comment Share on other sites More sharing options...
Yonko Posted August 20, 2014 Group: Members Topic Count: 166 Topics Per Day: 0.03 Content Count: 789 Reputation: 50 Joined: 04/16/12 Last Seen: July 8, 2022 Share Posted August 20, 2014 @GMOcean is this script detects resu-kill alike feature? thank you Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted August 20, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted August 20, 2014 good suggestion yonko.. can you please remove resu kill... like in woe you can't resurrect dead player. when kill automatically return into your save point. thank you. Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 20, 2014 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted August 20, 2014 That can easily be done. I'll make the changes when I'm done with work. Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted August 21, 2014 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted August 21, 2014 is there possible too? ex. if i killed 7 players so i have 70k from other players if they have 10k ea. players ok?and when a player kill me he/she got my 70k from me, and when i kill him/her my 70k is back.. and put a every recon you kills. i mean back to zero again from the start. so he/she save zeny from kills.. Quote Link to comment Share on other sites More sharing options...
Question
Hatake Kakashi
i'am a one piece fanatic, so i tried to suggest this npc event.
if you know and you're a fan of one piece you will guess what i think..
if you kill one player you will have a prize on your head like a wanted level.
there's an announcer, like for example "player 1 killed player 2 and he/she has a 1 million zeny prize on his/her head WANTED LEVEL 1".
Link to comment
Share on other sites
37 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.