dervin13
Active Member
- Joined
- Apr 26, 2008
- Messages
- 459
- Solutions
- 1
- Reaction score
- 28
Hi, someone know and can help me to transform this script to tfs 1.2??
It's a script that when the player open the chest he get the item and is teleported automaticaly getting the storage value
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local newPosition = {x=860, y=754, z=7}
if item.actionid == 32263 then
queststatus = getPlayerStorageValue(cid,12904)
if queststatus == -1 then
doPlayerAddItem(cid, 2433, 1)
doPlayerSendTextMessage(cid,22,"You have found a item.")
setPlayerStorageValue(cid,12904,1)
doTeleportThing(cid, newPosition, TRUE)
doSendMagicEffect(newPosition, CONST_ME_TELEPORT)
doSendMagicEffect(fromPosition, CONST_ME_POFF)
doCreatureSay(cid, "Grrrr.", TALKTYPE_ORANGE_1)
else
doPlayerSendTextMessage(cid,22,"You already take this reward.")
doTeleportThing(cid, newPosition, TRUE)
doSendMagicEffect(newPosition, CONST_ME_TELEPORT)
doSendMagicEffect(fromPosition, CONST_ME_POFF)
doCreatureSay(cid, "Grrrr.", TALKTYPE_ORANGE_1)
end
return TRUE
end end
It's a script that when the player open the chest he get the item and is teleported automaticaly getting the storage value