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

I got this Exp Helmet script help

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
function onEquip(cid, item, slot)
doSendMagicEffect(getPlayerPosition(cid), 51) doPlayerSetExperienceRate(cid, 36.00)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Ahora Tu experience Es De "..((36.00 - 1)*100).."% Mas!") return true end
function onDeEquip(cid, item, slot) doSendMagicEffect(getPlayerPosition(cid), 65) doPlayerSetExperienceRate(cid, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Tu Exp Regreso A La Normalidad") return true
end

umm erhh where should i put it in?'
actions movements?

what lines should i add and where to make it work??


also i have this script! its a promotion doll

function onUse(cid, item2, fromPosition, itemEx, toPosition)
local i = getPlayerVocation(cid)
if i == 5 then
vocation = "Dark Wizard"
elseif i == 6 then
vocation = "Forest Sage"
elseif i == 7 then
vocation = "Assassin Lord"
elseif i == 8 then
vocation = "Vicious Warrior"
end
if getPlayerPromotionLevel(cid) == 1 then
setPlayerPromotionLevel(cid, 2)
doCreatureSay(cid, "Ahora eres "..vocation.."", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid,1)
else
doPlayerSendCancel(cid,"Necesitas tener la primera promotion para poder ser promovido!.")
end
end

its suppose that the item dessapears when used but it doesnt dissapear :S
 
Code:
function onUse(cid, item2, fromPosition, itemEx, toPosition)
local i = getPlayerVocation(cid)
if i == 5 then
vocation = "Dark Wizard"
elseif i == 6 then
vocation = "Forest Sage"
elseif i == 7 then
vocation = "Assassin Lord"
elseif i == 8 then
vocation = "Vicious Warrior"
end 
if getPlayerPromotionLevel(cid) == 1 then
setPlayerPromotionLevel(cid, 2)
doCreatureSay(cid, "Ahora eres "..vocation.."", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid,1)
else
doPlayerSendCancel(cid,"Necesitas tener la primera promotion para poder ser promovido!.")
end
end

In actions.xml, and add something like this;

Code:
<action itemid="ITEM_ID_HERE" script="SCRIPT_NAME_HERE.lua"/>

The same to the first.
 
nope the helmet has no function on use it is on equip i think is on movements but dunno what lines y should add in movements.xml someone knows?

and the promotion doll doesnt dissapear after i use it same thing :S
 
Back
Top