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

Need Help with script please.. :P

lewis1234

Be Smart.
Joined
Oct 9, 2011
Messages
108
Solutions
1
Reaction score
10
Hello Hmm i need help with a script please... i want a script so when u pull a lever u get a special item and then u get teleported to the temple, i hope u understand so basically Pull lever,Get an special item And when u get the item u get Teleported to the temple
 
Hello Hmm i need help with a script please... i want a script so when u pull a lever u get a special item and then u get teleported to the temple, i hope u understand so basically Pull lever,Get an special item And when u get the item u get Teleported to the temple

LUA:
local storage = 50302 -- Change to a free storage.
local item, count = xxxx, xx -- change to Item ID and amount

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorage(cid, storage) > 0 then
		return false
	else
		doPlayerGiveItem(cid, item, count)
		doPlayerSetStorageValue(cid, storage, 1)
		doTeleportThing(cid, getTownTemplePosition(getPlayerTown))
	end
	return true
end
Rep if it works please.
Oh, and set a special unique or actionid to the lever.
 
Back
Top