Crixpx
New Member
- Joined
- Jan 11, 2015
- Messages
- 70
- Reaction score
- 3
hola!! I would like to know if anyone can edit this script for me
Is a war zone script But what I want is that it can only be used every 24 hours My idea is to make an area where you can only enter every 24 hours for vip players
this is my base script
I'm using OTX 3 for 10.90 ot server
I hope someone can help me u.u thanks

Is a war zone script But what I want is that it can only be used every 24 hours My idea is to make an area where you can only enter every 24 hours for vip players

I'm using OTX 3 for 10.90 ot server
Code:
local destinations = {
[3140] = {teleportPosition = Position(32996, 31922, 10), storage = 955, value = 1},
[3141] = {teleportPosition = Position(33011, 31943, 11), storage = 956, value = 2},
[3142] = {teleportPosition = Position(32989, 31909, 12), storage = 957, value = 3},
}
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
local destination = destinations[item.uid]
if not destination then
return true
end
if player:getStorageValue(destination.storage) ~= destination.value then
player:teleportTo(fromPosition)
return true
end
player:teleportTo(destination.teleportPosition)
destination.teleportPosition:sendMagicEffect(CONST_ME_TELEPORT)
return true
end
I hope someone can help me u.u thanks