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

Solved Help fix easy script

Of course:

LUA:
local function reset()
	doTransformItem(getThingfromPos({x=33155, y=31297, z=3, stackpos=2},11104).uid, 11103)
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
    
     if item.itemid == 11103 and item.actionid == 35053 and getPlayerStorageValue(cid,35053) < 2 then
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		doTransformItem(item.uid, item.itemid + 1)
		doCreatureSay(cid, "You've broken the lizard's magic crystal!", TALKTYPE_ORANGE_1)
		setPlayerStorageValue(cid,35053,2) 
		addEvent(reset, 1 * 60 * 1000)
	end
  return TRUE
end

This is the fixed script, I don't remember what was wrong with it lol, I'm working in a lot of scripts simultaneally
 
Back
Top