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

Lua Monster Lever

Zakhran

Pace
Joined
May 7, 2012
Messages
252
Reaction score
6
Location
Detroit, Michigan
Hey all, i have a problem with a action.
PHP:
local storage = 4588
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getCreatureStorage(cid, storage) > 0) then
		doTeleportThing(cid, {x = 1155, y = 980, z = 13}, false)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	else
		return doPlayerSendCancel(cid, "Sorry, not possible.")
	end
	return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end

and another located in creaturescripts.
The script works, but only the player that "fragged" the monster can pass through the lever, and the other ppl no..

Anyone knows how to do to everybody can pass when x monster killed?thanks,rep++
 
yeah, didn't you say you had a creaturescripts script, probably onKill? if so make it so it's a global storage when you kill it instead of creature storage. that should work, but i think it's getGlobalStorageValue
 
Back
Top