EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Changign player class and checkign deity? (https://www.eqemulator.org/forums/showthread.php?t=24751)

ChaosSlayer 03-27-2008 01:06 PM

Changign player class and checkign deity?
 
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?


All times are GMT -4. The time now is 02:42 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.