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

onEquip- nie dziala

nowy tu

Banned User
Joined
Jul 6, 2013
Messages
4
Reaction score
0
pousuwalem juz wszystkie prawie linijki i nadal nie rozumiem, dlaczego to nie dziala ?

Bo jak zdejmuje ringa. to jest ten napis itd, natomiast jak go zakladam to niby zmieni pierwsze pare razy ID na 7708, ale nawet napisu nie pokazuje zadnego podczas zakladania....a po kilku probach przestaje zmieniac swoje ID i zostaje caly czas 7697....
Lua:
function onDeEquip(cid, item, slot) 
    if(item.itemid == 7708) then 

            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has ended.") 
            doTransformItem(item.uid, 7697) 
    end 
	return true
end 

function onEquip(cid, item, slot) 

    if(item.itemid == 7697) then 
	    		
           doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has been activated! It is now: " .. config.rate .. "x doubled your former experience rate.") 
           doTransformItem(item.uid, 7708)
           
    end
	return true
end
i w movements.xml
XML:
<movevent type="Equip" itemid="7697" slot="ring" event="function" value="onEquipItem"/>
    <movevent type="DeEquip" itemid="7008" slot="ring" event="function" value="onDeEquipItem"/>
    <movevent type="Equip" itemid="7697" slot="ring" event="script" value="expring.lua"/>
    <movevent type="DeEquip" itemid="7008" slot="ring" event="script" value="expring.lua"/>
 
Last edited:
Back
Top