Mera Mero
Guess Who?
- Joined
- Dec 27, 2014
- Messages
- 417
- Reaction score
- 86
Greeting otlanders, this is first script for me ,may someone need it ,this simple required items to enter this tp TESTED ON 0.3.6 AND WORKING GOOD
Movements,scripts,lua
EDITED WORKING GOOD NOW
Movements,scripts,lua
Code:
local itemid1 = 2157
local itemid2 = 9971
local itemid3 = 2160
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then
return true
end
if getPlayerItemCount(cid, itemid1) >= 12 and getPlayerItemCount(cid, itemid2) >= 20 and getPlayerItemCount(cid, itemid3) >= 30 then
doPlayerRemoveItem(cid, itemid1, 12)
doPlayerRemoveItem(cid, itemid2, 20)
doPlayerRemoveItem(cid, itemid3, 30)
doTeleportThing(cid, {x=1003,y=1002,z=7}, true)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "TELEPORTED")
else
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "You need 50 Crystal Coins To Go IN!")
end
return true
end
Last edited: