View Single Post
  #2  
Old 06-09-2009, 06:27 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Though I haven't tried it yet, you should be able to use the new EVENT_CAST for that. It should be something as simple as this:

player.pl
Code:
sub EVENT_CAST {

  if($spell_id == 1000) {

    if($gender == 0) {
      quest::playerrace(95);
    }
    elsif($gender == 1) {
      quest::playerrace(62);
    }
    else{
      # do nothing
    }

  }

}
As I said, I haven't tested this new event yet, but I think this should do exactly what you are wanting. I have been wanting to write some new scripts to use it and test it out, but just haven't had time yet. I am excited to have this as an option now and will definitely be taking advantage of it some time soon
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote