• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Question about one LUA function

KylerXX

Active Member
Joined
Jun 24, 2010
Messages
439
Reaction score
30
This function: doPlayerSetSpecialDescription(cid, desc) it works too with monsters?
 
No, with "doPlayer" functions you can only use them on players themselves. With "doCreature" you can do it with a player or a monster.
not really :p with doCreatureSetStorage you cannot set storages to a monster but players :p
altho creature = {players, monsters, npcs}
 
not really :p with doCreatureSetStorage you cannot set storages to a monster but players :p
altho creature = {players, monsters, npcs}
Code:
	//doCreatureSetStorage(cid, key[, value])
	uint32_t key = popNumber(L);
	ScriptEnviroment* env = getEnv();
	if([B][COLOR="red"]Creature* creature[/COLOR][/B] = env->[B]get[COLOR="red"]Creature[/COLOR]ByUID[/B](popNumber(L)))
Function names are rarely misleading. :p
 
Back
Top