Lava Titan
Developer
Hello, i was trying to make a script for a item that sets weapon attribute aid like this one but i cant put it working, can someone fix it for me?
I would be so greatfull and ofc give REP to every1 who helps me =p
I would be so greatfull and ofc give REP to every1 who helps me =p
LUA:
local weapons =
{
{7390},
{7405},
{7408}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerWeapon(cid).actionid == 1234 then
doPlayerSendCancel (cid, "You already used this on your weapon.")
else
if itemEx.itemid == weapons then
doItemSetAttribute(uid, 'aid', 1234)
doSendMagicEffect(cid, 33)
doSendAnimatedText(getCreaturePosition(cid), "UPGRADED!",TEXTCOLOR_LIGHTGREEN)
return true
end


