<action itemid="6544" event="script" value="expegg.lua"/>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 6544 then
doCreatureSay(cid, "You ate an egg and received some exp!", talktype_orange_1)
doPlayerAddExperience(cid, 10000)
doPlayerRemoveItem(cid, 6544, 1)
end
return true
end
<action itemid="6545" event="script" value="outfitegg.lua"/>
<action itemid="6544" event="script" value="expegg.lua"/>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 6545 then
doPlayerRemoveItem(cid, 6545, 1)
doCreatureChangeOutfit(cid, math.random(outfitid, outfitid, outfitid, outfitid, outfitid))
doCreatureSay(cid, "You have changed ur outfit", talktype_orange_1)
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 6544 then
doPlayerRemoveItem(cid, 6544, 1)
doCreatureSay(cid, "You ate an egg and received some exp!", talktype_orange_1)
doPlayerAddExperience(cid, 10000)
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
doRemoveItem(item.uid, 1)
doCreatureSay(cid, "You ate an egg and received some exp!", TALKTYPE_ORANGE_1)
doPlayerAddExperience(cid, 10000)
return true
end
local outfits = {12, 70, 101} -- add here the outfits
function onUse(cid, item, fromPosition, itemEx, toPosition)
local outfit = getCreatureOutfit(cid)
outfit.lookType = outfits[math.random(1, #outfits)]
doRemoveItem(item.uid, 1)
doCreatureChangeOutfit(cid, outfit)
doCreatureSay(cid, "You have changed ur outfit", TALKTYPE_ORANGE_1)
return true
end
Do you get a message, the white cancel message "You cannot use this object." or the orange text above you "You ate an egg and received some exp!" ?@Limos Tfs 0.3.6, i got no errors but when i ate the egg i got nothing it was like a normal egg.