Event death
Hey guys,
In regards to event on death and death complete, i was wondering if it's possible to reward players a LDoN currency, when they die? i have tried a few ways, even the simplest way: sub EVENT_DEATH_COMPLETE { quest::addldonpoints("15", 1); } But obviously, not exactly like that because it would have to reward the $name of who killed him, i have tried several ways but cannot seem to pinpoint it, any hints? |
Is that planning on rewarding only one player or, if a group, all players for the kill ?
|
All players would be nice, or both.
|
Did you try setting that second value "theme" to 0 ? Not sure if that would work, haha
|
EVENT_DEATH_COMPLETE's initiator is the one who did the killing, I believe. (I'd have to look again). But, I assume you were using that code in the /quests/global/global_player.pl
If so, and it didn't work, then, I suspect the one doing the killing is indeed the initiator. So try this instead: Code:
sub EVENT_DEATH_COMPLETE |
Yea i was wondering if i needed it in the global_player.pl, i shall try that, i actually used it on the npc being killed's .pl script, so i could make only those npcs give the credit.
|
Quote:
|
Actually, I'd have to test. I'm not even sure (yet) if the NPC has a target, thus able to identify the entity that it slayed, in the EVENT_SLAY. I'll have to look, however, going by the wiki, I don't see any exported variables for that particular event.
|
Use "EVENT_KILLED_MERIT" as it will give credit to all players that were in the party /raid that killed the NPC.
This would be used on an NPC type script. Code:
sub EVENT_KILLED_MERIT { |
That's awesome, thanks alot Nate!
Quote:
|
Hmm afraid not Nate, didn't seem to update? Does it matter if it is a version of a zone i have edited?
|
I tried this just for the fun of it, but it didn't work for me either. I even tried getting the
task, then trying it and still nothing. |
With sub_event_killed_merit I found that alot of the currency's would not update until you zone.
|
EVENT_KILLED_MERIT I believed was an NPC event, where initiators are those individuals, group or raid that received experience from the kill. Id have to confirm with the source to be sure in case of behavior change or such. However, the event death complete code I provided should do just fine?
You could try to $client->UpdateAdmin() after giving the points. |
I mean you are looking to give ldon points for a players death right, it's how your OP reads anyway.
|
Quote:
|
I guess I read the original post wrong :D
I thought you wanted LDON points awarded when killing NPCs. |
Yea that is what i was after, when killing a wolf, recieve ldon points.
|
If you want it form an NPC then try...
Needs to be in an NPC script Code:
sub EVENT_KILLED_MERIT { |
Quote:
|
Quote:
|
Quote:
|
Quote:
He was trying to be helpful. You were NOT clear. He was trying to understand correctly. Why the sense of entitlement? |
Quote:
Quote:
Quote:
Tensions seem just so damn high around here anymore. Must be the coronal opening in the sun sending solar winds our way. Later. |
Quote:
is someone misinterpreting another's question or statement. I've been guilty of that myself. Then the response based on the misunderstanding is what gets the gears grinding. But not everyone is perfect expressing themselves. It can be people with "high expectations" (of others) that usually get that negativity started. In this particular thread, I thought the same as Nate. Others may have interpreted it as PvP kills. Some say "is not", some say "ain't" and everyone has their own grammar and composition skills. Then the grammar and forum cops show up with their own expectations, which usually derails the thread. |
Quote:
Proved my point right there, to be honest. But it doesn't matter, text really is quite a downfall when you try to assume tones in it, i appreciated your help. |
Quote:
|
Quote:
But hey, that opens me up to abusive remarks in a private message with the kid, right? Yea sure does, if people can't handle what is said they need to remove themselves and NOT start a private conversation up. Tis why the community is dieng, you can't say one thing, or make 1 mistake without some upheld person being a snide snot. |
Quote:
:) |
Quote:
|
Quote:
I simply stated, you were being a dick, and Ghanja was trying to help you. The reason the community blows now is because people expect perfection in everything they receive for no effort. That's why millenial mindset continues to exist. God I fucking hope someone bans me soon to avoid people like you. |
Quote:
|
Quote:
|
Thread locked: The question seems to have been resolved. This thread is no longer on the tracks.
|
All times are GMT -4. The time now is 04:52 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.