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

doPlayerAddSword function!

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
I'm not sure if this is going to work but try.

Lua:
function doPlayerAddSword(cid, add)
		if(isPlayer(cid) == TRUE) then
			doPlayerAddSkillTry(cid, SKILL_SWORD, getPlayerRequiredSkillTries(cid, SKILL_SWORD, add))
		else
			error("Something is going wrong")
		end
	return TRUE
end

If this works, I gonna make for club, axe, distance tc.
 
Last edited:
Its not a copy but its basically the same thing. And if you scroll down on that post. It shows exactly how to change it to sword/distance w.e~
 
I'm not sure if this is going to work but try.

Lua:
function doPlayerAddSword(cid, add)
		if(isPlayer(cid) == TRUE) then
			doPlayerAddSkillTry(cid, SKILL_SWORD, getPlayerRequiredSkillTries(cid, SKILL_SWORD, add))
		else
			error("Something is going wrong")
		end
	return TRUE
end

If this works, I gonna make for club, axe, distance tc.

You dont have to make seperate functions...
Lua:
function doPlayerAddMeleeSkill(cid, type, add)
                if(isPlayer(cid) == TRUE) then
                        doPlayerAddSkillTry(cid, type, getPlayerRequiredSkillTries(cid, type, add))
                else
                        error("Something is going wrong")
                end
        return TRUE
end
 
Back
Top