Clearing Farmiliar

Moderator: MacroQuest Developers

larry1024
a ghoul
a ghoul
Posts: 131
Joined: Tue Apr 19, 2005 11:28 pm

Clearing Farmiliar

Post by larry1024 » Wed Mar 01, 2006 6:41 am

after the lastest patch why isn't subrutien not being picked up any more?

#event makemypetgoaway "You have entered #1#"
sub event_makemypetgoaway(string line,string zone)
/if (${Me.Pet.ID} && ${Me.Class.Name.Equal["Wizard"]}) {
| Making My Flapy familiar go away
/echo #making my familiar go away
/pet get lost
}
/return

echoism
a ghoul
a ghoul
Posts: 131
Joined: Tue Oct 19, 2004 9:59 am

Post by echoism » Wed Mar 01, 2006 9:56 am

Are you running mq2 scripts with ISXEQLegacy?

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed Mar 01, 2006 10:24 am

Why do you have "" inside []?

PS Though this in no way will resolve your issue.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed Mar 01, 2006 10:33 am

On your event, you have the "string line,string text" stuff but you don't use it in the event sub. That can just be removed and have the event parameter fixed. It should look something like this:

Code: Select all

#Event MakeMyPetGoAway "You have entered#*#" 
Sub Event_MakeMyPetGoAway
/if (${Me.Pet.ID} && ${Me.Class.Name.Equal[Wizard]}) {
  | Making My Flapy familiar go away
  /echo #making my familiar go away
  /pet get lost
}
/return
Again, this very well may not fix your problem, this is just a coding suggestion.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]