icabit Posted January 14, 2013 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 353 Reputation: 70 Joined: 07/14/12 Last Seen: February 12, 2023 Share Posted January 14, 2013 my code OnPCDieEvent: if(getgmlevel() >= $icaGMLevel){ end; } if (#streak >2 ) { announce rid2name(killerrid)+" has ended "+ strcharinfo(0) +"'s "+ #streak$ +"! streak at "+ .map$,0; soundeffect ""+#Announcer+"_smackdown.wav",0; } but if a monster kills me it also announces how do i avoid this? Quote Link to comment Share on other sites More sharing options...
Capuche Posted January 14, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted January 14, 2013 Add if( killedrid > 3000000) end; 1 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 14, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 14, 2013 use OnPCKillEvent instead of OnPCDieEvent: OnPCKillEvent: if ( getgmlevel() >= $icaGMLevel ) end; .@name$ = strcharinfo(0); attachrid killedrid; if ( #streak <= 2 ) end; announce .@name$ +" has ended "+ strcharinfo(0) +"'s "+ .streakname$[ #streak ] +" at map "+ strcharinfo(3), 0; end; something like this Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted January 14, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted January 14, 2013 Ghost's PvP script? Quote Link to comment Share on other sites More sharing options...
icabit Posted January 14, 2013 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 353 Reputation: 70 Joined: 07/14/12 Last Seen: February 12, 2023 Author Share Posted January 14, 2013 (edited) Add if( killedrid > 3000000) end; i used this instead now working thnx for the clue if( killerrid > 3000000) end; @AnnieRuru i tried but it gave me a headache im pretty bad at logic >.> thx lots. i sure learn a lot from the topics you reply from Ghost's PvP script? yeah and now its time to test for sql : http://pastebin.com/dEqrkczy for npc: http://pastebin.com/ePbV08SL for wav files : http://www.mediafire...r4pxhsrsn85y486 INTRODUCTION so this is ghost's pvp system(http://rathena.org/b...pvp-system-v13/) + mercurial(http://www.eathena.w...pe=post&id=8461) i merged them to fix some functions Goals so basicly what i or we need for impovement is -gm menu in game i already added some menu to it but i think i need to add more options like the map @_@ and item reward i dunno how to add it in menu and someone who can clean the script my bug encounters: when i tried killing a poring my streak wasn't working so meaning thats perfectly fine but after being killed by a monster this happened what should i do? now fixed Menu bug report dunno why: i wanted to use my gm menu and it seems like when i change the settings in it via in game to wont affect any my example was changing the feed limit to 10 instead of default 5(i changed it via in game) then i tried killing 1 character for more than 5 times it already kicked me so basically the npc ignored the changes i have made in game using the gm menu that i made y is that? also i want to clean this but i dont know how can some one clean for me? im a noob -the feeder/fedee penalty(i tried it but it wont kick me out of the server T_T) is it maybe because im using gm accounts? not sure i haven't tried using normal player now fixed using http://rathena.org/wiki/Freeloop such a great tool My reason why i modified this the reason why i modified this was -i need it for my server -i am a HoN/Dota player -and its KEWL -ghost is still at school, i asked permission on his topic in rathena but he didnt replied for like 2-3 days(but i cant help myself to edit it ) changelog 1/15/2013 4:06am ph time -fixed some announcers -feed count will be reset after your nemesis gave you a payback -menu is now working -save option now added in gm menu, set it to 1 before you make the changes -fixed streak ended if monster kills you - now your streak can only be ended with players -fixed loop problems -finally merged mercurial and ghost pvp system Credits to the orginal authors GHOST and MERCURIAL bumps details updated kindly redownload the npc file it is updated as of now 1/15/2013 7:32 am PH time you may now test it i will try to support you guys as much as i can but i cant guarantee you Edited January 14, 2013 by icabit Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 15, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 15, 2013 seems like you are able to edit other member's script and add extra features on it but you should know this ghost's pvp script is actually an unoptimized script mine one ... http://www.eathena.ws/board/index.php?showtopic=177918 is outdated and bug on rathena, but still much optimized than his and works the closest one to your request Quote Link to comment Share on other sites More sharing options...
icabit Posted January 15, 2013 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 353 Reputation: 70 Joined: 07/14/12 Last Seen: February 12, 2023 Author Share Posted January 15, 2013 thx annie ill try to check this out and learn some codes from it and maybe with this i can improve my modification time to read Quote Link to comment Share on other sites More sharing options...
Question
icabit
my code
but if a monster kills me it also announces
how do i avoid this?
Link to comment
Share on other sites
6 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.