PDA

View Full Version : Changign player class and checkign deity?


ChaosSlayer
03-27-2008, 01:06 PM
could someone post commands needed to change player class?


is this suppose to work?

sub EVENT_SAY
{

if ($text=~/warrior/i)
{
quest::changeclass(1); #changes player class into warrior
}

}


also how do I check he player worships specific deity?
via quest command of course

Theeper
03-28-2008, 12:52 AM
There is a method called $client->SetBaseClass(), but I have never used it, so I dunno what it actually does. Also, there is $client->SetDiety(). It seems like there should be a $client->GetDiety() or maybe just a $player_diety variable, but I haven't seen them.

cavedude
03-28-2008, 01:33 AM
There IS indeed a $client->GetDeity(); object. Check out Qaelin_Hailstorm.pl in qrg of the PEQ quests for an example of how to use it.

ChaosSlayer
03-28-2008, 02:34 AM
thanks guys

Ok I got these working 100%

quest::changedeity(X);
quest::permaclass(X);
quest::permarace(X);


cheking on that guy in qrg now.

how about checking players gender?