Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-17-2004, 11:28 AM
Charmy
Discordant
 
Join Date: May 2004
Location: The DeathStar of David
Posts: 337
Default quest::targlobal problem

Hi all trying to get this funtion to work, here is the code i am using

Code:
sub EVENT_ITEM
{
checkitem ( )
}

sub CheckItem
{
 if($itemcount{18700} && $itemcount{18700} == 1) #Finsihed Class Combined Bag
{
quest::targlobal("NecroCMP","2","D5",$mobid,$charid,$zoneln);
quest::emote("Opens the bag and peers inside");
quest::say("Hmm looks like everthing is here, well i suppose your good enough to study the art of necromancy. Just tell me when you are [Ready] and I shall being your lessons");
}
}
...
NOTE: i left alot out of the quest its several hundred lines long so i am only posting the part that doesn't work.

Code:
if($NecroCMP == "2")
{
quest::say("So Be it.");
quest::delglobal("NecroCMP");
#<events happen here>
}
else
{
quest::say("How dare you ask to begin studying with me before you have completed my quest.");
}
}
...
My problem is this, when i hand in the item i get the text like i have finished but then i say "ready" and it goes to the else action, i get an error in zone.exe

Code:
error inserting necroCMP:DBcore::RunQuery: No Result
this i beleive is telling me its having a problem posting the value of "2" into the database, however i don't understand why. if you have any ideas on a fix for this, that would be great thanks in advanced.
__________________
Mess with the Jews, and we will take all your money
Grunties Rule
And with that... I end
Any Other Questions, please refer to the Following:
http://iliilllli1.netfirms.com
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:21 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3