• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Rookgard System tfs 1.5 nekiro

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
882
Solutions
7
Reaction score
123
Location
Brazil
YouTube
caruniawikibr
recently I'm having problems with my server, where level 7 players don't lose more experience, and there is no rookgard system, that is, the player should when getting level 6 to 5 (with vocation), go back to rookgard, level 1 and reset, does anyone know if is this possible to fix?
nekiro 1.5
version 7.72
 
Maybe you can do a creaturescripts

Lua:
onAdvance(player, skill, oldLevel, newLevel)

Where newLevel < 6
And player vocation == 0 to not run (v < 1)

Idk how to script in tfs 1.x+ but

Lua:
function onAdvance(cid, skill, oldLevel, newLevel)

if (getPlayerVocation(cid) == 0) then -- == 0 or < 1
  return true
end

if(skill ~= SKILL__LEVEL) then
  return true
end

if newLevel < 6 then
Vocation
Town
Experience
Skills
itens
remove spell or no
outfit looktype
...
end
  return true
end

I think you can do this way(i write a 0.4 scripts just to show you how you can do, not tested and does not know if gonna work, but you can convert to 1.x as a base idea)
 
Last edited:
Maybe you can do a creaturescripts

Lua:
onAdvance(player, skill, oldLevel, newLevel)

Where newLevel < 6
And player vocation == 0 to not run (v < 1)

Idk how to script in tfs 1.x+ but

Lua:
function onAdvance(cid, skill, oldLevel, newLevel)

if (getPlayerVocation(cid) == 0) then -- == 0 or < 1
  return true
end

if(skill ~= SKILL__LEVEL) then
  return true
end

if newLevel < 6 then
Vocation
Town
Experience
Skills
itens
remove spell or no
outfit looktype
...
end
  return true
end

I think you can do this way(i write a 0.4 scripts just to show you how you can do, not tested and does not know if gonna work, but you can convert to 1.x as a base idea)
Ward You gave me an idea and i want this too for tfs
Remove vocation at level 6 and change town I'd dropping everything on death to void getting items being sent too rook, don't know how suppose to be if items dissapear or drop
 
I don't know nothing about 1.x scripting, but here is the lua to check item in inventory

Lua:
player = Player(cid)
player:getSlotItem(CONST_SLOT_NECKLACE)

You can check for
Lua:
CONST_SLOT_HEAD
CONST_SLOT_NECKLACE
CONST_SLOT_BACKPACK
CONST_SLOT_ARMOR
CONST_SLOT_RIGHT
CONST_SLOT_LEFT
CONST_SLOT_LEGS
CONST_SLOT_FEET
CONST_SLOT_RING
CONST_SLOT_AMMO

I think you can do a check if item exist and do a drop or remove on death
 
Back
Top