Jump to content
  • 0

who can make this event?


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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 by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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 by Hatake Kakashi
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

its a cool event, anyon can help him with this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   1
  • Joined:  09/07/12
  • Last Seen:  

up

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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 by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   2
  • Joined:  06/28/14
  • Last Seen:  

i've got error in the line 14 ->{insertchar(.@a$,",",(.@b - 3)); set .@c,.@c+3;}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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

 

o5qd00.jpg

Edited by Hatake Kakashi
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   2
  • Joined:  06/28/14
  • Last Seen:  

thanks :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

How about on normal PVP and for War of Emperium?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

@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;}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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 by Hatake Kakashi
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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 by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

@GMOcean is this script detects resu-kill alike feature? thank you

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

That can easily be done. I'll make the changes when I'm done with work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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

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