EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Event death (https://www.eqemulator.org/forums/showthread.php?t=41236)

Excuses 03-25-2017 02:35 AM

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?

GRUMPY 03-25-2017 02:44 AM

Is that planning on rewarding only one player or, if a group, all players for the kill ?

Excuses 03-25-2017 02:50 AM

All players would be nice, or both.

GRUMPY 03-25-2017 02:53 AM

Did you try setting that second value "theme" to 0 ? Not sure if that would work, haha

ghanja 03-25-2017 10:27 AM

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
{
        if ($entity_list->GetMobByID($killer_id)->IsNPC())
        {
                $client->UpdateLDoNPoints(15, 1);
        }
}

Points is a long integer last time I checked, so, there is no need to place it in quotes (though I'm assuming what you posted was just one of many iterations trying to get it to work, so it's just a fyi).

Excuses 03-25-2017 06:47 PM

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.

ghanja 03-25-2017 06:54 PM

Quote:

Originally Posted by Excuses (Post 253845)
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.

Well no you dont need to use global_player (it's just another angle one could go), if you want to use this on only specific NPC's then, you have two choices. Use the global NPC script /quests/global/global_npc.pl, or zone based "global" NPC script /quests/<zonesn>/default.pl in either case you'd use EVENT_SLAY

ghanja 03-25-2017 06:58 PM

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.

NatedogEZ 03-26-2017 03:33 AM

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 {
$client->UpdateLDoNPoints(15, 1);
}


Excuses 03-27-2017 12:53 AM

That's awesome, thanks alot Nate!

Quote:

Originally Posted by NatedogEZ (Post 253866)
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 {
$client->UpdateLDoNPoints(15, 1);
}



Excuses 03-27-2017 02:14 AM

Hmm afraid not Nate, didn't seem to update? Does it matter if it is a version of a zone i have edited?

GRUMPY 03-27-2017 03:17 AM

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.

atrayas 03-27-2017 11:03 AM

With sub_event_killed_merit I found that alot of the currency's would not update until you zone.

ghanja 03-27-2017 11:14 AM

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.

ghanja 03-27-2017 11:16 AM

I mean you are looking to give ldon points for a players death right, it's how your OP reads anyway.

Excuses 03-27-2017 02:45 PM

Quote:

Originally Posted by ghanja (Post 253928)
I mean you are looking to give ldon points for a players death right, it's how your OP reads anyway.

Well, obviously, but then obviously some ways don't work 100%. I will look into this again soon.

NatedogEZ 03-27-2017 07:10 PM

I guess I read the original post wrong :D

I thought you wanted LDON points awarded when killing NPCs.

Excuses 03-28-2017 01:08 AM

Yea that is what i was after, when killing a wolf, recieve ldon points.

NatedogEZ 03-28-2017 02:39 AM

If you want it form an NPC then try...


Needs to be in an NPC script
Code:

sub EVENT_KILLED_MERIT {
quest::addldonpoints(15, 1);
}


ghanja 03-28-2017 07:01 AM

Quote:

Originally Posted by Excuses (Post 253937)
Well, obviously, but then obviously some ways don't work 100%. I will look into this again soon.

Obviously.

ghanja 03-28-2017 07:02 AM

Quote:

Originally Posted by Excuses (Post 253944)
Yea that is what i was after, when killing a wolf, recieve ldon points.

"i was wondering if it's possible to reward players a LDoN currency, when they die?"

Excuses 03-28-2017 02:39 PM

Quote:

Originally Posted by ghanja (Post 253948)
"i was wondering if it's possible to reward players a LDoN currency, when they die?"

Was a typo, i mean't when npc's die. Thanks for being *that guy* as usual.

Maze_EQ 03-28-2017 02:56 PM

Quote:

Originally Posted by Excuses (Post 253954)
Was a typo, i mean't when npc's die. Thanks for being *that guy* as usual.

Hey, don't be a dick.

He was trying to be helpful.

You were NOT clear. He was trying to understand correctly.

Why the sense of entitlement?

ghanja 03-28-2017 03:28 PM

Quote:

Originally Posted by Excuses (Post 253954)
Was a typo, i mean't when npc's die. Thanks for being *that guy* as usual.

"as usual" ? I'm usually helpful, or I do my best to be. However, I made an attempt to clear up whether or not it may have been a typo, and/or misunderstanding on my part when I wrote:

Quote:

I mean you are looking to give ldon points for a players death right, it's how your OP reads anyway.
To which your only response was:

Quote:

Well, obviously, but then obviously some ways don't work 100%. I will look into this again soon.
So, things weren't that "obvious." However, I'll back off your thread now and will just avoid any future ones, as I'm "obviously that guy as usual."

Tensions seem just so damn high around here anymore. Must be the coronal opening in the sun sending solar winds our way.

Later.

GRUMPY 03-28-2017 04:48 PM

Quote:

Originally Posted by ghanja (Post 253956)
Tensions seem just so damn high around here anymore. Must be the coronal opening in the sun sending solar winds our way.

Later.

What's actually happening in the beginning of that "tension" getting started in any thread, (what I am seeing),
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.

Excuses 03-29-2017 02:36 AM

Quote:

Originally Posted by ghanja (Post 253956)
"as usual" ? I'm usually helpful, or I do my best to be. However, I made an attempt to clear up whether or not it may have been a typo, and/or misunderstanding on my part when I wrote:



To which your only response was:



So, things weren't that "obvious." However, I'll back off your thread now and will just avoid any future ones, as I'm "obviously that guy as usual."

Tensions seem just so damn high around here anymore. Must be the coronal opening in the sun sending solar winds our way.

Later.


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.

ghanja 03-29-2017 12:42 PM

Quote:

Originally Posted by Excuses (Post 253969)
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.

Indeed, sorry you assumed tone in my responses. :( Glad I could help!

Excuses 03-29-2017 03:29 PM

Quote:

Originally Posted by Maze_EQ (Post 253955)
Hey, don't be a dick.

He was trying to be helpful.

You were NOT clear. He was trying to understand correctly.

Why the sense of entitlement?

You assume i meant it in an intrusive way, sorry you thought thast.

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.

Maze_EQ 03-29-2017 03:39 PM

Quote:

Originally Posted by Excuses (Post 253972)
You assume i meant it in an intrusive way, sorry you thought thast.

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.

Ok kid.

:)

Excuses 03-29-2017 03:40 PM

Quote:

Originally Posted by Maze_EQ (Post 253973)
Ok kid.

:)

And bam, the reason why.:-D

Maze_EQ 03-29-2017 03:57 PM

Quote:

Originally Posted by Excuses (Post 253974)
And bam, the reason why.:-D

I mean, we can go back and forth all day.

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.

GRUMPY 03-29-2017 04:40 PM

Quote:

Originally Posted by Maze_EQ (Post 253975)
I fucking hope someone bans me soon

Ever watch that show MASH ? Clinger acted like a crazy person trying to get out the army, haha

Maze_EQ 03-29-2017 04:52 PM

Quote:

Originally Posted by GRUMPY (Post 253977)
Ever watch that show MASH ? Clinger acted like a crazy person trying to get out the army, haha

I don't need to act...lol.

Kingly_Krab 03-29-2017 05:18 PM

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.