• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

TFS 1.X+ Rookgard System tfs 1.5 nekiro

bpm91

Well-Known Member
Joined
May 23, 2019
Messages
531
Solutions
7
Reaction score
62
Location
Brazil
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
 

dewral

Banned User
Joined
Dec 4, 2019
Messages
303
Solutions
10
Reaction score
211

mano368

Intermediate OT User
Joined
Sep 2, 2011
Messages
285
Solutions
34
Reaction score
116
Location
Brazil
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:

johnsamir

Banned User
Joined
Oct 13, 2009
Messages
555
Solutions
5
Reaction score
98
Location
Nowhere
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
 

mano368

Intermediate OT User
Joined
Sep 2, 2011
Messages
285
Solutions
34
Reaction score
116
Location
Brazil
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
 
Top