Hello I have Problem... I wanted to make premium Runes
and did so
Data/Actions/Scripts/NAZWA.lua
and
Data/Actions.xml
I Runke Game does not work because You can not use it on the
//Sorry for poor English, but I'm Polish man
and did so
Data/Actions/Scripts/NAZWA.lua
Lua:
local cfg =
{
points = 100,
effect = CONST_ME_GIFT_WRAPS
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not isPlayer(itemEx.uid)) then
return false
end
db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. cfg.points .. " WHERE `name` = '" .. getAccountByName(getCreatureName(itemEx.uid)) .. "' LIMIT 1;")
doCreatureSay(cid, "You have received " .. cfg.points .. " premium points!", TALKTYPE_ORANGE_1, false, nil, toPosition)
doSendMagicEffect(toPosition, cfg.effect)
doRemoveItem(item.uid, 1)
return true
end
and
Data/Actions.xml
XML:
<action actionid="2282" event="script" value="NAZWA.lua"/>
I Runke Game does not work because You can not use it on the
//Sorry for poor English, but I'm Polish man
Last edited by a moderator: