Mob wont cast. Please help!
Hey everyone me and my friend just got back into eqemu and made our server. We used to have great scripts but lost them and cant remember anything lol. Can someone please help me with making this cast a spell?
Code:
sub EVENT_COMBAT and so like after u wipe or sumthing or lose aggro the spell will stop casting. As of right now the only thing this mob is doing is shouting "test test test" as I said we used to do it all the time with sub EVENT_TIMER just cant rememeber how. a quick explination would prolly bring it back to us. Thanks in advance. |
anyone that could help me on this please?
|
You don't have to remember all the code. The wiki is pretty comprehensive. http://www.eqemulator.net/wiki/wikka...=QuestTutorial Another good resource is pre-existing code. There are several events already written that cast spells on regular intervals and reset on a wipe. You can check out PEQ's quests for examples.
If you are trying to use the client as a target, you need to remember that the client does not trigger the timer event, so it won't be automatically available to that sub. |
hm ok. where can i look at PEQs quests?
|
Here is the svn: http://code.google.com/p/projecteqquests/
|
Hm u sent me the link to a rev download?
|
i still cant find anything to make this dang mob cast.. anyone got any suggestions please?
|
Quote:
|
hm that works how exactly do i search my quest directory specifically?
|
Windows? or Linux?
Windows(XP), bring up a File Explorer window, navigate to your emu folder, where the quests are, then click on search. Click on files and folders, find the text box that says find IN files and enter quest::cast. Click find or whatever. Unix: Let me know and I'll add directions. |
ahhh ok im using windows 7 ill try it thanks
|
nope cant do that with 7. wow lol still messin with this dam thing
|
Messing around with another script while i look at that svn link i got I figured out how to make this mob cast on ITSELF but no on the player.. So its nuking itself lol ANY IDEAS?!?!
Quote:
|
if i use
Quote:
|
should be quest::castspell($userid,<spell#>) so that should be working. Did you try it without the EVENT_HP?
Code:
if ($combat_state == 1) { |
All times are GMT -4. The time now is 06:37 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.