|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Quests::Q&A This is the quest support section |
10-07-2015, 12:41 PM
|
Hill Giant
|
|
Join Date: Jun 2010
Posts: 231
|
|
Thanks Shen I did not realize that was there, now its book marked lol. And Kay are you talking about using for every death? Ill post my default.pl....
Code:
sub EVENT_DEATH_COMPLETE{
my $CountOrcs = $qglobals{"orcslay1"};
my $CountGnolls = $qglobals{"gnollslay1"};
$client->SetGlobal("orcslay1", ($qglobals{"orcslay1"}+1) , 7, 'F');
quest::ze(14, "Dead orcs = " . $CountOrcs . " Dead Gnolls =" . $CountGnolls . " ...");}
|
10-07-2015, 12:51 PM
|
|
Dragon
|
|
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
|
|
So, you have multiple NPC ID's for both Gnolls and Orcs. You would like to keep track of the deaths of them in only two zones (currently).
That's my understanding.
Do you wish to give credit for the kills if no experience is yielded? What if groups go out killing them? You only wish for the one with the final blow to get the credit?
|
10-07-2015, 01:03 PM
|
Hill Giant
|
|
Join Date: Jun 2010
Posts: 231
|
|
Its a controlled event, blackburrow and crushbone, every orc/gnoll, level 10 PC max(is not a concern as there is a zone autoboot script already in place), personal credit is not a priority. Its living vs undead and when you are undead you play as undead gnolls raiding crushbone. as the living you play as orcs raiding blackburrow.
My simplistic version is to just keep track of orc and gnoll deaths, and broadcast them to their own zone.
What I really wanted was, every gnoll death whether it be PC or NPC acted as a gnoll kill etc etc.
The dwarves were all changed to orcs to make it easier on the default script.
|
10-09-2015, 05:47 PM
|
Hill Giant
|
|
Join Date: Jun 2010
Posts: 231
|
|
Anyone care to tell me why this default.pl does not work, yet when I assign it to an NPC it works fine?
Code:
sub EVENT_DEATH_COMPLETE{
my $CountOrcs = $qglobals{"orcslay1"};
my $CountGnolls = $qglobals{"gnollslay1"};
$client->SetGlobal("gnollslay1", ($qglobals{"gnollslay1"}+1) , 7, 'F');
quest::ze(14, "Dead orcs = " . $CountOrcs . " Dead Gnolls =" . $CountGnolls . " ...");}
|
10-09-2015, 06:15 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,595
|
|
Do ALL the NPCs you're trying to use that on have their 'qglobal' column set to '1' in 'npc_types'?
|
10-09-2015, 08:15 PM
|
Hill Giant
|
|
Join Date: Jun 2010
Posts: 231
|
|
yea I used navicat and had them all set
|
10-09-2015, 08:15 PM
|
Administrator
|
|
Join Date: May 2013
Location: United States
Posts: 1,595
|
|
Hmm, pretty weird, didn't look at the code, but I'll get back to you on something, message me on Skype (Kingly.krab).
|
10-10-2015, 09:48 AM
|
Hill Giant
|
|
Join Date: Jun 2010
Posts: 231
|
|
Ok so I got it to work as a default script... only issue is it does not work with all the npcs in the zone. There is no other scripts other than mine in the zone file. Orcs and gnolls globally, all share the same script when dying, the only issue is I cant find it. I looked in the global file and nothing. Are there hard coded scripts when they die they automatically say those things that will superceed my default file?
Code:
sub EVENT_DEATH_COMPLETE{
my $CountOrcs = $qglobals{"orcslay1"};
my $CountGnolls = $qglobals{"gnollslay1"};
quest::setglobal("gnollslay1", ($qglobals{"gnollslay1"}+1) , 7, 'F');
quest::ze(13, "<<<<---Dead orcs = " . $CountOrcs . " Dead Gnolls = " . $CountGnolls . " --->>>>");}
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 07:14 AM.
|
|
|
|
|
|
|
|
|
|
|
|
|