• 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!

Setting a minimum skill requirement on a tool?

kessykins

Intermediate OT User
Joined
Mar 15, 2010
Messages
297
Reaction score
105
Hey,

I'm trying to put a minimum skill requirement on a custom tool

IE: a player needs atleast fisting 50 to use a rake on dirt..

Is this possible? If so - how ;o
 
The rake tool will be an item that players can't pick up - It'll be sitting on the ground waiting to be used :p
To prevent an unprepared player from using the tool.. A player needs to have a minimum of fisting 50 to use it.

I have a sort gardenning lua.. I'm just wondering where in the lua I'd add it ;p
 
so it will be like that go to movement and creat new lua
Lua:
local lvl = 50
function onEquip(cid, item, slot)
 if getPlayerGroupId(cid) < 3 and getPlayerSkillLevel(cid, 0) < 50 then
  doPlayerSendTextMessage(cid,25,"Only worthy player equip this.")
 end
return false
end

and paste this in the movmnet.xml
Code:
<movevent type="Equip" itemid="XXXX" slot="armor" event="script" value="xxx.lua"/>
 
ahh, to use it then function on use and check for the skil as i made in the script :), so ye if the gardening.lua is a action script it can be inside it
 
Back
Top