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

2x Skill with special weapon?

merfus

Member
Joined
Dec 27, 2011
Messages
214
Reaction score
5
Location
Poland
Is there any script for something that:

All Weapons got skill rate x1

Weapon ID XXXX Got skill rate x1.2
Weapon ID XXXX Got skill rate x2.0

I Mean 2x skill rate from rate servers (config.lua) so if server got skill rate x20 weapon will skill 2x faster (x40)

How to do that?
 
Didn't test it ^^
Lua:
function onEquip(cid, item, slot, check)
if(check) then return true end
local cfg = {
	weapon_id = {itemidhere, skill_type, rate} 	--example {2392, SKILL_SWORD, 2}
	}
	
if item.itemid == cfg.weapon_id[1] then
	doPlayerSetRate(cid, cfg.weapon_id[2], cfg.weapon_id[3])
end
return true
end
 
Back
Top