But you cant give a weapon attack speed or? i wouldnt set it up for the whole server lolyes, whit attack speed...
--Credits to MadMook and Limos for the return trues(what would i do without limos xD)--
-- Remove the "--" if you want premium or level restriction
--if you add an if then add an end!
function onEquip(cid, item, slot)
-- if isPremium(cid) then
-- if getPlayerLevel(cid) >= 8 then
doPlayerSetSkills(cid, 3.3)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Enjoy 3.3 skill rates.")
-- end
-- end
return true
end
function onDeEquip(cid, item, slot)
-- if isPremium(cid) then
doPlayerSetSkills(cid, 1.1)
-- else
-- doPlayerSetSkills(cid, 1.0)
-- end
return true
end
<movevent type="Equip" itemid="2127" slot="ring" level="12" event="script" value="equipthis.lua"/>
<movevent type="DeEquip" itemid="2127" slot="ring" event="script" value="equipthis.lua"/>
[28/01/2014 13:30:44] [Error - MoveEvents Interface]
[28/01/2014 13:30:44] data/movements/scripts/equipthis.luanEquip
[28/01/2014 13:30:44] Description:
[28/01/2014 13:30:44] data/movements/scripts/equipthis.lua:9: attempt to call global 'doPlayerSetSkills' (a nil value)
[28/01/2014 13:30:44] stack traceback:
[28/01/2014 13:30:44] data/movements/scripts/equipthis.lua:9: in function <data/movements/scripts/equipthis.lua:6>