Two Lua functions to add premium points for Znote and Gesior AAC shop
Developed for tfs 0.3.6
For Gesior AAC
For Znote AAC
Developed for tfs 0.3.6
For Gesior AAC
Lua:
function doPlayerAddGesiorPoints(cid, points)
return db.executeQuery("UPDATE accounts SET premium_points = premium_points + "..points.." WHERE id = "..getAccountIdByName(getCreatureName(cid)).."") and doPlayerSave(cid)
end
For Znote AAC
Lua:
function doPlayerAddZnotePoints(cid, points)
return db.executeQuery("UPDATE znote_accounts SET points = points + "..points.." WHERE account_id = "..getAccountIdByName(getCreatureName(cid)).."") and doPlayerSave(cid)
end
Last edited: