Thread: Functions
View Single Post
  #8  
Old 05-17-2004, 12:45 AM
cofruben
Old-EQEmu Developer
 
Join Date: Oct 2002
Location: Spain
Posts: 323
Default

I didnt find any client function to change the deity,so you will have to make three things things.

in parser.cpp add this:
Code:
         	else if (!strcmp(strlwr(command),"changedeity")) { //Cofruben:-Changes the deity.
          			  if (mob && mob->IsClient())
					  {
              			  mob->CastToClient()->SetDeity(atoi(arglist[0]));
			              mob->CastToClient()->Message(15,"Your Deity has been changed/set to: %i",arglist[0]);
						  mob->CastToClient()->Save(1);
						  mob->CastToClient()->Kick();
					  }
					  else
						mob->CastToClient()->Message(15,"Error changing Deity");
         	}
add this to embparser.cpp
Code:
"sub changedeity{push(@cmd_queue,{func=>'changedeity',args=>join(',',@_)});}"
and finally,add this to client.h:
Code:
inline void SetDeity(uint32 i) {m_pp.deity=i;}
here is a list of deity:
Agnostic 396
Veeshan 200
Bertoxxulous 201
Brell_Serilis 202
Cazic-Thule 203
Erollisi Marr 204
Bristlebane 205
Innoruuk 206
Karana 207
Mithaniel Marr 208
Prexus 209
Quellious 210
Rallos Zek 211
Rodcet Nife 212
Solusek Ro 213
Tribunal 214
Tunare 215


See you later.
Reply With Quote