Na Amigo
The crazy girl
hello i have an script to upgrade the item id "2342" to "2343" with the power gem id "2156"
the tutorial to use the item id "2342" at gem to get "2343" i have the script but it say error at console player not found
the tutorial to use the item id "2342" at gem to get "2343" i have the script but it say error at console player not found
Code:
function OnUse(cid,item,olditem,newitem,item2)
if item2.itemid == olditem then
doPlayerAddItem(cid,newitem,1)
doPlayerSendTextMessage(cid,19,"Congratulations! Your Weapon Has Been Successfully Upgraded")
doSendAnimatedText(position,"Succeed",TEXTCOLOR_RED)
doSendMagicEffect(position,28)
end
doRemoveItem(item2.uid,1)
end
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2342 and getPlayerItemCount(cid,2342) >= 1 then
doPlayerAddItem(cid,item,1,2156,2343,item2) --ancient helmet
pps = getPlayerPosition(cid)
end
end