Nirer
New Member
Well, I made a pretty simple script, nothing unusuall and ever since then my Distro sends me some peculiar messages, look at this one (while trying to preform the script):
Any idea whats wrong?
Here is the script btw:
Any idea whats wrong?
Here is the script btw:
PHP:
function onUse(cid, item, frompos, item2, topos)
---Made By Nirer/Kakashi~Sensei/Naruto---
local outfit_to_change={lookType=130 , lookBody=71 , lookHead=19 , lookLegs=128 ,lookFeet=128 , lookAddons=1}
local level_needed=2 -- Change this to level needed to make the rune work properly with no errors
if(item.itemid==2263) then
if(isPlayer(item2.uid)==1) then
if(getPlayerLevel(cid)>=level_needed) then
doSetMonsterOutfit(item2.uid, outfit_to_change, -1)
doSendMagicEffect(topos, CONST_ME_MAGIC_GREEN)
elseif(getPlayerLevel(cid)<level_needed) then
doPlayerSendCancel(cid, "You don't have enough level to use this outfit rune...")
doSendMagicEffect(frompos, CONST_ME_POFF)
end
elseif(isPlayer(item2.uid)==FALSE) then
doPlayerSendCancel(cid, "It is not a player...")
doSendMagicEffect(frompos, CONST_ME_POFF)
end
end
return 1
end