Ir para conteúdo

snajiw

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    snajiw deu reputação a luanluciano93 em [PEDIDO] Talkaction !promote   
    Testa essa amigo ... 
    local config = { PROMOTION_1_LVL = 20, PROMOTION_1_COST = 20000, PROMOTION_2_LVL = 100, PROMOTION_2_COST = 100000 } function onSay(cid, words, param, channel) if getPlayerVocation(cid) >= 1 or getPlayerVocation(cid) <= 4 then if getPlayerLevel(cid) >= config.PROMOTION_1_LVL then if doPlayerRemoveMoney(cid, config.PROMOTION_1_COST) == true then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doSendMagicEffect(getCreaturePosition(cid), 14) doPlayerSendTextMessage(cid, 18, "You are promoted!") else doPlayerSendTextMessage(cid, 18, "You need "..config.PROMOTION_1_COST.." golds to promote.") end else doPlayerSendTextMessage(cid, 18, "You need level "..config.PROMOTION_1_LVL.." to promote.") end elseif getPlayerVocation(cid) >= 5 or getPlayerVocation(cid) <= 8 then if getPlayerLevel(cid) >= config.PROMOTION_2_LVL then if doPlayerRemoveMoney(cid, config.PROMOTION_2_COST) == true then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doSendMagicEffect(getCreaturePosition(cid), 14) doPlayerSendTextMessage(cid, 18, "You are promoted!") else doPlayerSendTextMessage(cid, 18, "You need "..config.PROMOTION_1_COST.." golds to second promote.") end else doPlayerSendTextMessage(cid, 18, "You need level "..config.PROMOTION_1_LVL.." to second promote.") end else return false end return true end Para configurar é no começo do script ...
  2. Gostei
    snajiw deu reputação a join em [Ajuda]   
    Cara, sem o script fica difícil, mas ai está falando i seguinte
    "Não consigo carregar o arquivo promoter.lua, na primeira linha existe um símbolo não esperado próximo ao 'ï'".
    Na verdade eu acho que esse 'ï' é que está bugando o arquivo!
  3. Gostei
    snajiw deu reputação a Absolute em [Ajuda]   
    erro de acento, linha no script, poste aqui o script promoter.lua que arrumarei para você.
  4. Gostei
    snajiw deu reputação a llucas75 em [Ajuda Rep+]   
    Isso é erro do editor teste agora...
     



     
    Eu só apaguei a primeira linha e rescrevi ela kkkkk 
  5. Gostei
    snajiw deu reputação a macalo em [Ajuda Rep+]   
    data/npc/NpcName.xml
    <?xml version="1.0" encoding="UTF-8"?> <npc name="NpcName" script="data/npc/scripts/NpcName.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="96" head="0" body="0" legs="0" feet="0" addons="0"/> </npc>
    data/npc/NpcName.lua
    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid)    npcHandler:onCreatureAppear(cid)end function onCreatureDisappear(cid)    npcHandler:onCreatureDisappear(cid)end function onCreatureSay(cid, type, msg)    npcHandler:onCreatureSay(cid, type, msg)end function onThink()    npcHandler:onThink()end function npcPromotion(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then         return false     end if (isPremium(cid)) then if (getPlayerLevel(cid) >= 100) then if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then     if doRemoveItem(cid, 9971, 1) then      doPlayerSetVocation(cid, getPlayerVocation(cid)+4)      doPlayerSendTextMessage(cid, 20, "Voce é um ".. getPlayerVocationName(cid) .."!")     else      doPlayerSendTextMessage(cid, 20, "Voce nao possui o item desejado!")     end else      doPlayerSendTextMessage(cid, 20, "Voce não possui a promotion anterior ou já esta promovido.") end else doPlayerSendTextMessage(cid, 20, "Voce nao possui level para ser promovido.") end else doPlayerSendTextMessage(cid, 20, "Voce nao possui premmium account.") end end local node1 = keywordHandler:addKeyword({'high promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promotion you if you give me a '.. getItemName(9971) ..'. Do you want me to promote you?'})     node1:addChildKeyword({'yes'}, npcPromotion, {})     node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true}) npcHandler:addModule(FocusModule:new()) em troca de um item (ID = 9971). mais qual quer coisa so editar no scrit o id do iten
  6. Gostei
    snajiw deu reputação a Danihcv em Ajuda com Forgottenserver   
    Sim. Vc soh teria que configurar o config.lua novamente, eh claro.
  7. Gostei
    snajiw deu reputação a Danihcv em Ajuda com Forgottenserver   
    Baixa outro ot que tenha e pegue as dll's e o executável. Ou procura por: source 8.4 aqui no forum.
  8. Gostei
    snajiw deu reputação a llucas75 em Me ajudem com esses Scripts   
    Poste seu vocations.xml(esse do npc não sei se consigo, mas pelo menos deixo uma boa base) mas os outros faço pra ti de boa....
     
    Troca de itens por promote
    Base VV(está imcompleto só estou deixando aqui caso alguém ajude também) E posta seu vocations.xml
     



     
     
    Item que troca de sexo  VV
     
     



     
    escolher a vocation V
     



     
    Vc consegue montar as tags ne?
    diga a posição do seu templo...
     
    Pensando que vc não irá conseguir montar as tags kkk vamos lá...(só do npc que não esta completo não postarei)
     
    actions.xml
     



     
     
    Obs: Se qualquer script apresentar algum erro me avise que eu arrumo .
    Obs2:não se esqueça de passar o vocation.xml que acho que consigo arrumar pra ti até o do npc e me fale como vc quer ele..
    Obs3:lembrando que vc pode fazer qualquer alteração... mas vc deve ter um conhecimento básico de scripting.
     
    Changesex.lua
     



     
    tag 
     
    talkaction.xml
     



     
    Leia os comentários e editem a vontade os scripts..

Informação Importante

Confirmação de Termo