Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 0 then
doPlayerSay(cid,"+500 exp",16)
doPlayerAddExp(cid,500)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Za maly magic.")
end
return 1
end
<action actionid="ID ITEMKA" event="script" value="expitem.lua"/>
Ten skrypt wy?ej mi nie dzia?a na TFS 0.3.6 ;/ Ma kto? inny ?? Reput poleci !! <action itemid="5944" event="script" value="script.lua" />
function onUse(cid, item, fromPosition, item2, toPosition)
local experience = 500
doPlayerAddExperience(cid,experience)
doRemoveItem(cid,item.uid,1)
doSendAnimatedText(getPlayerPosition(cid),""..experience.."",215)
return true
end