• 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!

Lua Wrong outfit when steping on this tile

Suxex

Member
Joined
Aug 13, 2007
Messages
391
Reaction score
5
Location
Halland - Getinge
Hey, can someone help me with this..
After I changed my outfit to an item and then want my outfit to be changed back to normal(when I step on the tile with aid 11258) i get invisible and when Im trying to change outfit my client gets debug.

Code:
function onStepIn(cid, item, pos)
local outfit = {lookType = getPlayerStorageValue(cid, 45481), lookHead = getPlayerStorageValue(cid, 45482), lookAddons = getPlayerStorageValue(cid, 45483), lookLegs = getPlayerStorageValue(cid, 45484), lookBody = getPlayerStorageValue(cid, 45485), lookFeet = getPlayerStorageValue(cid, 45486)}
local storage = 17812
	if item.actionid == 11258 and getPlayerStorageValue(cid,storage) == 1 then
			doCreatureChangeOutfit(cid, outfit)
			setPlayerStorageValue(cid, storage, 0)
end
end

Please help me, I will rep++ you if you help me =)
 
Code:
function onStepIn(cid, item, pos)
local outfit = {lookType = getPlayerStorageValue(cid, 45481), lookHead = getPlayerStorageValue(cid, 45482), lookAddons = getPlayerStorageValue(cid, 45483), lookLegs = getPlayerStorageValue(cid, 45484), lookBody = getPlayerStorageValue(cid, 45485), lookFeet = getPlayerStorageValue(cid, 45486)}
local storage = 17812
	if item.itemid == 5810 then
		doSetMonsterOutfit(cid,common[math.random(#common)],duration*1000)
	end
	doSendMagicEffect(fromPosition,CONST_ME_HOLYAREA)
	return TRUE
end

Try this
if it helped REP+
 
Back
Top