Ir para conteúdo

China5ki

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Obrigado
    China5ki deu reputação a Dwarfer em (Resolvido)System Points In Game   
    Como sempre aparece alguém pedindo algo semelhante, resolvi fazer um básico aqui.
     
    Primeiramente, adicione uma coluna à tabela players de sua database:
    ALTER TABLE `players` ADD `ot_points` INTEGER NOT NULL DEFAULT 0  
    Em seguida, crie um arquivo na pasta lib :
     
    systempoints.lua (ou qualquer nome de sua preferência)
     
     
    Talkaction  
    Em talkactions/scripts crie um arquivo:
     
    pointstalk.lua
     
     
    Adicione a tag em talkactions.xml: <talkaction words="/addpoints;/delpoints;/onpoints;/transfpoints;/helppoints;/points;/getpoints" event="script" value="pointstalk.lua"/>
     
    -- Como usar: -- /addpoints Dwarfer,10 -> adiciona 10 pontos ao player Dwarfer -- /delpoints Dwarfer,10 -> remove 10 pontos do player Dwarfer -- /getpoints Dwarfer -> mostrará quantos pontos o player tem -- /points --> mostrará quantos pontos o próprio player possui -- /transfpoints Dwarfer,10 -> transfere 10 pontos para o player Dwarfer -- /onpoints 10 -> adiciona 10 pontos a todos os players online -- /helppoints -> mostra como devem ser usados os comandos permitidos ao player Actions Baú que dá itens por pontos
     
    Em actions/scripts, crie um arquivo:
     
    chestitemspoints.lua
     
     
    Configuração:
    local t = { points = 20, -- pontos necessários items = {{2160, 5}, {2152, 7}, {2158, 3}}, -- {id do item, quantidade} que será dado ao player time = {5, "sec"} -- tempo para usar o baú novamente } Em actions.xml, adicione a tag: <action actionid="ACTION_ID_DO_BAÚ" script="chestitemspoints.lua" />
     
    Baú que dá pontos somente uma vez
     
    Em actions/scripts, crie um arquivo.lua:
     
    chestpoints.lua
     
     
    Em actions.xml, adicione a tag: <action actionid="ACTION_ID_DO_BAÚ" script="chestpoints.lua" />
     
    NPC  
     
     
    E, antes que peça rsrsrs, um tile que só passa com certa quantidade de pontos.
     
    Movements Em movements/scripts crie um arquivo:
     
    tilepoints.lua
     
     
    Em movements.xml: <movevent type="StepIn" actionid="ACTION_ID_DO_PISO" event="script" value="tilepoints.lua"/>
  2. Obrigado
    China5ki deu reputação a jNo em (3º) | [8.60] - Epic Server   
    That part of the system points, maybe you need to convert the querry that works in SQL to MYSQL, or add a points system that works with Gesior, and disable the current one. Usually always comes in the gesior a delivery system of donate items.
    I still have to spend some querry as you can see inside the ot folder.
    I do not understand much of MYSQL, I recommend creating a topic in the forum / part of support, I'm sorry!
  3. Obrigado
    China5ki deu reputação a jNo em (3º) | [8.60] - Epic Server   
    Não é problemas de sources, é uns registro no arquivo login.lua no creaturescript, por enquanto faça o seguinte:
    Abra o arquivo e coloque na frente dos códigos, o "--", ficando assim:
     
    --registerCreatureEvent(cid, "Duca-Login") --registerCreatureEvent(cid, "Duca-Logout") --registerCreatureEvent(cid, "Duca-Death") --registerCreatureEvent(cid, "Duca-Combat")  
     
     
     
    E sobre a staff, e a magia, tudo isso é editavel, você pode fazer ao seu gosto, leva em conta que tem o fast attack, a quantidade do heal estava balanceado pra isso, quando fizer o teste vai entender, mas customize.
  4. Obrigado
    China5ki deu reputação a jNo em (3º) | [8.60] - Epic Server   
    Does this error occur when you try to enter the donate area, or randomly appear in the distro? You can change it for another one, this script is that it stays in the movements folder if it does not fail memory, responsible for preventing frees from entering the donate
     
    Are you talking about gold ingot? If so, it's the same thing as crystal coin, but with a higher value, when you have 1kk, and click, turn 1 gold ingot bar.
     
    Sorry for the english, I translated it on google.
     
     

Informação Importante

Confirmação de Termo