Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 01-31-2012, 07:02 PM
helman
Sarnak
 
Join Date: Apr 2010
Location: Texas, Sweetwater
Posts: 69
Default

Going off what you gave me I got the turn in working. But It doesn't do anything yet. Here is my Script. (Please tell me if I'm missing anything. I think I need to add a $qglobals, But I'm not sure how to do it yet.)

Code:
sub EVENT_SAY {

  if($text=~/Hail/i) {
			quest::say("Hello Dear Friend, I am the elder here. I can Improve the stats on your Epic weapons.");
	}


}

sub EVENT_ITEM {
  if(plugin::check_handin(\%itemcount, 132508 => 1)) { #Rift Shards
			quest::say("Thank you, Your weapon should be a bit stronger now.");
    }

   else {
    quest::say("I have no use for this, $name.");
    plugin::return_items(\%itemcount);
  }

}
Now I am looking at some vxed mobs,and I see things like this But I don't know what to do with it.

example 1
Code:
if (defined $qglobals{bic} && $qglobals{bic_sew} == 12 && $qglobals{bic_vxe} == 13 && $qglobals{bic_tip} == 14) {
example 2
Code:
if (defined($qglobals{clockwork}) && ($qglobals{clockwork} == 1)) {
example 3
Code:
sub EVENT_DEATH {
  my $instid = quest::GetInstanceID("vxed",0);
  my $newvalue = $qglobals{$instid.'_vxed_status'};
  $newvalue++;
  quest::setglobal($instid.'_vxed_status',$newvalue,7,"H6");
  if($newvalue >= 50) {
    SPAWN_EKIKOA();
  }
} Although I think I know how this one works.
For my script what do I put in the {} after $qglobals, and what are the numbers for in example 1 and 2. I can probably put it together right if someone can tell me what goes there. Trust me After that I'll be able to do it on my own. (I kinda wish there was a detailed Tutorial on how to do this. Thats why I keep askin for a better example. Some people say its better for me to figure it out on my own, But I learn better when I have a good example to work off.)
__________________
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 04:36 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