Jump to content
  • 0

OnPcDieEvent


icabit

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

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?

xqeyht.jpg

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Add

if( killedrid > 3000000) end;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Ghost's PvP script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

Add

if( killedrid > 3000000) end;

i used this instead now working :D 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 :D

Ghost's PvP script?

yeah and now its time to test :D

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

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

xqeyht.jpg

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

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

5vw4f4.jpg

can some one clean for me? sad.png

im a noob sad.png

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

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 biggrin.png)

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


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

thx annie :D

ill try to check this out

and learn some codes from it and maybe with this i can improve my modification :D

time to read :D

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