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-13-2004, 06:03 PM
Charmy
Discordant
 
Join Date: May 2004
Location: The DeathStar of David
Posts: 337
Default Zone Crash on quest execute.

When i load this script and hand in anything but 100pp zone.exe crashes. any ideas on why? i have a feeling its in

Code:
if(($myplatinum = 100) && ($mygold = 0) && ($mysilver = 0) && ($mycopper = 0))
Code:
sub EVENT_SAY 
{ 
if($mname=~ /^Soulbinder/i)
{
if($text=~/Hail/i)
{
quest::say("Greetings $name. When a hero of our world is slain  their soul returns to the place it was last bound and the body is reincarnated. As a member of the Order of Eternity it is my duty to [bind your soul] to this location if that is your wish. If you are an adventurer and are in need of a heal, perhaps you could help to fill my coin purse in exchange for heal? Nothing to extreme just give me a [Healing emblem] and i shall heall all your wounds.");
} 
if($text=~/bind my soul/i) 
  { 
  quest::say("Binding your soul.  You will return here when you die."); 
  quest::castspell($userid,2049); 
  }
if($text=~/Healing Emblem/i)
{
quest::say("Yes, yes a healing emblem, don't have have one? well.. for a small fee i can give you one, nothing to much, lets say 100pp per emblem, only in platinum please? No? well fine you can make the trip to the nexus then, our leader resides there he sells the emblems, go buy one from him, otherwise you have to pay my price.") 
  } 
 }
}

sub EVENT_ITEM
{
if($mname=~ /^Soulbinder/i)
{
if($itemcount{18700} && $itemcount{18700} == 1)
 ##changed item to tome of discord incase anyone wants to try it on their server to try to debug.
{
 quest::say("A Healing Emblem? Very well got one heal comming your way!");
 quest::castspell($userid,13);
  }
$myplatinum = ($platinum);
$mygold = ($gold);
$mysilver = ($silver);
$mycopper = ($copper);
if(($myplatinum = 100) && ($mygold = 0) && ($mysilver = 0) && ($mycopper = 0))
{
quest::say("Very good, here you are, One Healing Emblem, just hand it back to me when you 

are in need of a heal");
quest::summonitem(18700,1);
}
else
{
quest::say("I said 100 platinum, in Platinum coins only, Here take back your money");
quest::givecash($mycopper,$mysilver,$mygold,$myplatinum);
  }
 }
}
Handing him 100 pp results in the item, and handing the item results in a CH, this part works. but if i hand in any other coin combo it should say no and hand back the money, but zone is crashing, just wondering if anyone has any ideas on why its crashing, and secondly , i used the new may 12th code and the EVENT_ITEM section of this script didn't work in anyway, the text did but handing in any items didn't result in anything, any ideas on this as well? Thanks all for the help =)
__________________
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 08:29 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