• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Linux [CRASHES 0.3.6] Transform Ring

MeNi

*^#%$%
Joined
Jul 23, 2008
Messages
183
Reaction score
12
Hi, i have such script:

Code:
	local outfit =
	{
	-- Girls
		{
			lookType = 12,
			lookHead = 19,
			lookBody = 53,
			lookLegs = 92,
			lookFeet = 79,
			lookAddons = 0
		},
	-- Boys
		{
			lookType = 12,
			lookHead = 19,
			lookBody = 79,
			lookLegs = 3,
			lookFeet = 81,
			lookAddons = 0
		}
	}

	local condition1 = createConditionObject(CONDITION_ATTRIBUTES)
	setConditionParam(condition1, CONDITION_PARAM_TICKS, -1)
	setConditionParam(condition1, CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 200)
	setConditionParam(condition1, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, 200)
	
	function onEquip(cid, item, slot)
		local sexIndex = getPlayerSex(cid) + 1
		doSetCreatureOutfit(cid, outfit[sexIndex], -1)
		doAddCondition(cid, condition1)
		return TRUE
	end
	
	function onDeEquip(cid, item, slot)
		doRemoveCondition(cid, CONDITION_OUTFIT)
		doRemoveCondition(cid, CONDITION_ATTRIBUTES)
		return TRUE
	end


On Windows 0.3.6 it works fine, on Linux 0.3.6 it crashes when deEquiping. What is the problem?
 
i have server on 0.3.6 started before i bought donator, so if i won't find any way to fix it on 0.3.6 i will have to change to 0.4...
 
Back
Top