CesarZ
Well-Known Member
- Joined
- Sep 20, 2012
- Messages
- 268
- Solutions
- 4
- Reaction score
- 63
Alright guys trying to learn how to write code and update script and this simple one is giving me trouble.
this is the changes i did.
This is the script i tried to update to TFS 1.3 (is someone else script but im updating it)
it used to work when i had TFS 1.0 now im working with TFS 1.3 is not giving me any error but is no working either
this is the changes i did.
Lua:
local failposition = Position(770, 934, 6)
function onStepIn(cid, item, position, fromPosition)
local player = Player(cid)
if player:getPremiumDays() then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Welcome to Quick Hunting zone")
else
player:teleportTo(failposition)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You need Premium Account to Pass")
failposition:sendMagicEffect(CONST_ANI_ENERGYBALL)
end
return true
end
This is the script i tried to update to TFS 1.3 (is someone else script but im updating it)
Code:
local failPosition = Position(785, 971, 7)
function onStepIn(cid, item, position, fromPosition)
local player = Player(cid)
if not player then
return true
end
if player:isPremium() then
return true
end
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You need Premium Account to Pass")
failPosition:sendMagicEffect(CONST_ANI_ENERGYBALL)
player:teleportTo(failPosition)
return true
end
it used to work when i had TFS 1.0 now im working with TFS 1.3 is not giving me any error but is no working either
Last edited: