Segue o script... Esse é o sistema do player clicar no bau e comprar o item com points
local lever = {
[6001] = {40,10022},
[6002] = {25,10133},
[6003] = {25,10064},
[6004] = {15,12606},
[6005] = {15,12603},
[6006] = {15,12604},
[6007] = {15,12609},
[6008] = {15,12605},
[6009] = {15,12610},
[60010] = {12,10134},
[60011] = {12,10310},
[60012] = {8,9777},
[60013] = {8,2390},
[60014] = {8,9933},
[60015] = {8,8888},
[60016] = {8,7839},
[60017] = {8,8858},
[60018] = {8,8905},
[60019] = {8,9778},
[60020] = {35,10135}
}
function onUse(cid,item,fromPosition,itemEx,toPosition)
if getPoints(cid) < lever[item.actionid][1] then
return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você precisa de "..lever[item.actionid][1].." points.")
end
doPlayerAddItem(cid,lever[item.actionid][2], isItemStackable(lever[item.actionid][2]) and 1)
removePoints(cid,lever[item.actionid][1])
doPlayerSendTextMessage(cid,22,"você comprou um " .. getItemNameById(lever[item.actionid][2]))
return true
end
Refiz todo o processo desde o inicio, e até o monstro bugou, não conseguindo Summonar ou colocar no RME
systempoints.lua Esse é meu sistema de points