Para o comando /addskill tente adicionar esta tag no talkactions.xml:
<talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/>
Já para o comando buy premium você deve ir para mods (na mesma pasta que a pasta data) e adiciona um script.xml contendo este code:
buypremium_command.xml:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Buy premium command" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="buypremium_config"><![CDATA[
config = {
days = 90,
cost = 10000,
maxDays = 360
}
]]></config>
<talkaction words="!buypremium; !pacc" event="buffer"><![CDATA[
domodlib('buypremium_config')
if(getPlayerPremiumDays(cid) > config.maxDays) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not buy more than " .. config.days + config.maxDays .. " days of Premium Account.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return
end
if(not doPlayerRemoveMoney(cid, config.cost)) then
doPlayerSendCancel(cid, "You don't have enough money, " .. config.days .. " days premium account costs " .. config.cost .. " gold coins.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return
end
doPlayerAddPremiumDays(cid, config.days)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought " .. config.days .. " days of premium account.")
]]></talkaction>
</mod>


info
Grupo: Campones
Registrado: 18/11/11
Posts: 42
Reputação: +2
Como o Titulo diz eu queria o comando de player !buypremium e ele ganha 30 dias e o comando /addskill de gods