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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2010, 10:20 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default Tried Everything I can think of but i cant get my charm file working right

Im trying to make the augment (it uses a charmfile) to cast a spell every 5 minutes (for testing, it will be 3 hours when i get it working.

It doesnt work it casts every update. It seems like the timer is going off before it should. The global is changing to 0 every 1-2 minutes instead of 5. I cant figure out whats wrong.

Code:
#Mark of the Guardian

sub EVENT_SCALE_CALC {
	
	#initialize timer.
	quest::settimer("guardianspellItimer", 300);

	#check if the qglobal is = 1 and if the player doesnt have the buff yet cast it, set the timer and set the local variable to 1
  if ($qglobals{MarkOfTheGuardianI} == 1) {
	 quest::selfcast(10057);
	 quest::settimer("guardianspellItimer", 300);
	 quest::setglobal("MarkOfTheGuardianI",0,4,"F");
  }
  

}

sub EVENT_TIMER {
#set the local variable back to 0
if ($timer == "guardianspellItimer"){
    quest::setglobal("MarkOfTheGuardianI",1,4,"F");
	}
}
The only thing i can assume is the qglobal wont work because there is no NPC
Reply With Quote
  #2  
Old 09-11-2010, 01:54 AM
Hmm
Discordant
 
Join Date: Jan 2002
Posts: 276
Default

err nevermind.

I wonder if items have qglobal enable flag like npcs do though?
__________________
Hmm...
Reply With Quote
  #3  
Old 09-11-2010, 11:29 AM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Probably not, but i tried it without qglobals also it doesnt work. Its like the timer isnt triggering correctly. Im sure there is somthing im missing.

Im gonna just change it to a clicky, and change it from an augment to fit in the powersource field.


Guess powersource field doesnt work. Its set to the ammo field lol
Reply With Quote
  #4  
Old 09-13-2010, 01:19 AM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default

Why have a timer? The item scale function itself works like a timer, just have it check the global at every scale event(which is every minute I believe). Not sure if qglobals work in items yet though.
__________________
How about the power to kill a yak from 200 yards away...WITH MIND BULLETS! thats telekinesis kyle.
Reply With Quote
Reply


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 02:59 AM.


 

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