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

Script Help

Calon

Experienced Member
Joined
Feb 6, 2009
Messages
1,070
Reaction score
21
i want make scrip that player put 10 crystal coin in place x y z
and push switch and player teleport to x y z and the coins disappear..
Rep ++
 
Lua:
local unique = 1111 --Unique ID of the Lever
local newpos = {x=32351, y=32228, z=4} --Player's new position
function onUse(cid, item, frompos, item2, topos)
item1pos = {x=826, y=1088, z=7, stackpos=1} --Item Position
getitem1 = getThingfromPos(item1pos)
if item.uid == unique and item.itemid == 1945 and getpiece1.itemid == 2160 then
 	doRemoveItem(getitem1.uid,1)
	doSendMagicEffect(item1pos,23)
      doSendMagicEffect(getPlayerPosition(cid), 2)
      doTeleportThing(cid,newpos)
      doSendMagicEffect(newpos,10)
 else
doPlayerSendTextMessage(cid,22,"You have to put the 10cc on the right Place.")
end
return 1
end
:thumbup:
 
oh no work,
when i set the item in the position and move switch
02:59 You have to put the 30 Demonic Essence on the right Place.

local unique = 9002 --Unique ID of the Lever
local newpos = {x=32501, y=32358, z=10} --Player's new position
function onUse(cid, item, frompos, item2, topos)
item1pos = {x=32506, y=32342, z=10, stackpos=1} --Item Position
getitem1 = getThingfromPos(item1pos)
if item.uid == unique and item.itemid == 1945 and getpiece1.itemid == 6500

then
doRemoveItem(getitem1.uid,1)
doSendMagicEffect(item1pos,23)
doSendMagicEffect(getPlayerPosition(cid), 2)
doTeleportThing(cid,newpos)
doSendMagicEffect(newpos,30)
else
doPlayerSendTextMessage(cid,22,"You have to put the 30 Demonic Essence on

the right Place.")
end
return 1
end
 
i will put tp :(
anyway listen could u create a script that with timmer (switch remove an item like DHQ but with timmer 1 min and the stone back)
in other hand if create 1 more script that if player put 30 D S on location xxxx he get teleported to xx xx xx place
and rep++ plus
 
Back
Top