froy
Active Member
- Joined
- Sep 30, 2009
- Messages
- 151
- Solutions
- 3
- Reaction score
- 36
Hey!
I'm using Nostalrius 7.72 TFS 1.2 and noticed while testing some stuff that upon loosing premium as vocation 0
you'd get teleported to thais..
Code looks like this:
Somewhere I'd like to add
I've tried setting it up but ends up giving me no errors at all and still teleports no vocation players to thais..
Any help is very much appreciated!
I'm using Nostalrius 7.72 TFS 1.2 and noticed while testing some stuff that upon loosing premium as vocation 0
you'd get teleported to thais..
Code looks like this:
Code:
-- Premium system
if player:isPremium() then
player:setStorageValue(43434, 1)
elseif player:getStorageValue(43434) == 1 then
player:setStorageValue(43434, 0)
player:teleportTo({x = 32369, y = 32241, z = 7})
player:setTown(Town("Thais"))
end
Somewhere I'd like to add
Code:
player:getVocation():getId() > 1
player:teleportTo({x = 32097, y = 32219, z = 7})
player:setTown(Town("Rookgaard"))
I've tried setting it up but ends up giving me no errors at all and still teleports no vocation players to thais..
Any help is very much appreciated!