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

doRemoveSkill -- Posible?

Code:
function doPlayerRemoveSkill(cid, skill, amount, round)
	if(skill == SKILL__LEVEL) then
		return doPlayerRemoveLevel(cid, amount, round) - 1
	elseif(skill == SKILL__MAGLEVEL) then
		return doPlayerAddMagLevel(cid, amount) - 1
	end

	return doPlayerAddSkillTry(cid, skill, (getPlayerRequiredSkillTries(cid, skill, getPlayerSkillLevel(cid, skill) - 1) - getPlayerSkillTries(cid, skill)) / getConfigInfo('rateSkill'))
end

I just edited this from the addskill script... not that hard, if u think 2 seconds about it you can do it too.. not trying to be rude, just trying to show u how simple it all really is.

put this in your 50-functions file, and you can use it in all of your scripts...
 
doPlayerRemoveLevel isn't a function in TFS, so no, the script u added gigastar won't work :rolleyes:

Absolutly it will work with a release Joseph it just have to be fixed, I mean i have the skills to program in C++ and yesterday i solve the problem but in Mysql tables inserting Querys...
Otherwise I would try to develop a function online
 
Back
Top