Ir para conteúdo

notle2012

Conde
  • Total de itens

    884
  • Registro em

  • Última visita

  • Dias Ganhos

    8

Tudo que notle2012 postou

  1. pena que maioria dos servidores vem com o scripts mais o q vale é a intenção
  2. fico bom mais ficaria melhor se só god usasse esse comando exemplo <talkaction log="yes" words="/invasao" access="5" event="function" value="invasao.lua"/>
  3. muitooo boa a vídeo aula tem data prevista pra próxima???
  4. fico bom mais poderia ter ficado melhor me ajudo vlw
  5. muito bom esse ring
  6. muito bom agora posso criar meus pokemon iniciais
  7. muito bom o tutor me ajudo intender melhor sobre as Spells
  8. vlw ajudo muito, muito bem explicado
  9. muito bom funciono mesmo
  10. Simples, porém muito bem explicado
  11. Salve o código abaixo como "additem.lua" na sua pasta scripts "data\talkactions\scripts function onSay(cid, words, param) PERMICAO = 3 -- altere aqui o access dejado para o funcionamento do comando GM = getPlayerAccess(cid) if words == '/getplayer' and GM >= PERMICAO then pos = getPlayerPosition(cid) if param ~= '' then player = getPlayerByName(param) if player > 0 then setPlayerStorageValue(cid, 555, player) doPlayerSendTextMessage(cid, 22, 'Player: ' .. param .. ' ID: ' .. player .. ' foi salvo. Fale /additem "ID_do_item para adicionar o item para o player salvo.') doSendMagicEffect(pos, 28) else doPlayerSendTextMessage(cid, 18, 'Diga um nome de Player válido e online') doSendMagicEffect(pos, 2) end else doPlayerSendTextMessage(cid, 18, 'Você deve falar um nome de Player.\nExemplo: /getplayer "Yorun ') doSendMagicEffect(pos, 2) end elseif words == '/additem' and GM >= PERMICAO then ok = getPlayerStorageValue(cid, 555) if ok == nil then ok = 0 end if player ~= nil then nome = getPlayerName(player) end pos = getPlayerPosition(cid) if nome ~= '' and ok ~= 0 then if param ~= '' then doPlayerAddItem(player, param, 1) doPlayerSendTextMessage(cid, 22, ' Você adicionou um item para ' .. nome .. '.') doSendMagicEffect(pos, 12) setPlayerStorageValue(cid, 555, 0) else doPlayerSendTextMessage(cid, 18, 'Você deve falar um ID de item válido. \nExemplo: /additem "2160 ') doSendMagicEffect(pos, 2) end else doPlayerSendTextMessage(cid, 18, 'Você deve falar um nome de Player.\nExemplo: /getplayer "Yorun ') doSendMagicEffect(pos, 2) end end end agora é só alterar o "talkactions.xml" que esta em "data\talkactions", ADICIONANDO o seguinte trecho <talkaction words="/getplayer" script="additem.lua" /> <talkaction words="/additem" script="additem.lua" /> para usar antes vc deve falar o comando /getplayer "nome_do_player para salvar o player que deseja adicionar o item depois é só usar /additem "ID_do_item para adicionar o item no player salvo... não importa onde o player estiver, o item vai ser adicionado... se preferir LINK
  12. notle2012

    Ral,

    ja verifico na onde fica as bandeiras realmente essas condenadas {x=901,y=224,z=7} {x=1009,y=218,z=7} loga de god da look no chão e verifica
  13. ver se é esse LINK
  14. falto essa pra esconde boost lvl "hideBoost = false" mude false para true
  15. pq foi modificado o lugar pq nesse pokemon tem lvl são editados as coisas mais na pasta LIB verifique data\lib\configuration.lua
  16. tem que editar muitos scripts e pasta lib toda Baixa Aqui PDASEMLVL
  17. ja tento abrir dat e spr com dat editor e coloca corpse 64 no corpo dele???
  18. vc precisa do item editor vc uso "dat editor" mais tem que usa item editor pra add itens no items.otb dps ir na onde vc instalo map editor e troca o items.otb que vai aparece eu uso windows 7 map edito fica c:\Program Files (x86)\Remere's Map Editor\data ai vc procura versão que vc usa e troca items.otb
  19. não é só jogar na pasta htdocs ou pasta www???
  20. @eliteimperiosv eu deixe junto sorcerer e druid no mesmo npc mais qual quer coisa precisa eu tiro
  21. NPCDEPALADIN NPCDEKNIGHT NPCDEMAGES
  22. tem sim mais tem que editar muitos scripts a pasta lib toda da muito trabalho se vc não entende scripts melhor vc baixa esse LINK
  23. notle2012

    Comando Ban

    tente esse local default_comment = "" local default_lenght = 1 -- ban time in hours function onSay(cid, words, param) local parametres = string.explode(param, ",") if(parametres[1] ~= nil) then local accId = getAccountIdByName(parametres[1]) if(accId > 0) then local lenght = default_lenght local comment = default_comment if(parametres[2] ~= nil and tonumber(parametres[2]) > 0) then lenght = tonumber(parametres[2]) end if(parametres[3] ~= nil) then comment = parametres[3] end doAddBanishment(accId, lenght * 3600, 23, ACTION_BANISHMENT, comment, getPlayerGUID(cid), comment) local player = getPlayerByNameWildcard(parametres[1]) if(isPlayer(player) == TRUE) then doRemoveCreature(player) end else doPlayerSendCancel(cid, "Player with name " .. parametres[1] .. " doesn't exist.") end else doPlayerSendCancel(cid, "You must enter name.") end return true end
  24. saindo do forno data\npc\arquivo.xml esse Aquivo.xml pode usa os 3 igual só .lua que não vai trocando os nomedonpc <npc name="NOMEDONPC" script="data/npc/scripts/arquivo.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="134" head="78" body="88" legs="0" feet="88" addons="3"/> <parameters> <parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {go}." /> <parameter key="message_farewell" value="Tchau." /> <parameter key="message_walkaway" value="Tchau." /> </parameters> </npc> data\npc\scripts\arquivo.lua Esse È De Paladin local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado 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 creatureSayCallback(cid, type, msg) if msgcontains(msg, 'go') then if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 11 then selfSay("Boa viagem.", cid) doTeleportThing(cid, pos) else selfSay("Eu Não Posso Te Teleporta só Fiel A Os Paladin. E Vc Não è UM", cid) end end return TRUE end -- By Notle npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) data\npc\scripts\arquivo.lua Esse È De Knight local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado 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 creatureSayCallback(cid, type, msg) if msgcontains(msg, 'go') then if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 or getPlayerVocation(cid) == 12 then selfSay("Boa viagem.", cid) doTeleportThing(cid, pos) else selfSay("Eu Não Posso Te Teleporta só Fiel A Os Kinght. E Vc Não è UM", cid) end end return TRUE end -- By Notle npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) data\npc\scripts\arquivo.lua Esse È De mages e druids local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local pos = {x=160,y=54,z=7} -------------- Pos para onde o player sera levado 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 creatureSayCallback(cid, type, msg) if msgcontains(msg, 'go') then if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 10 then selfSay("Boa viagem.", cid) doTeleportThing(cid, pos) else selfSay("Eu Não Posso Te Teleporta só Fiel A Os Druds E Magos E Vc Não è UM", cid) end end return TRUE end -- By Notle npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) no meu topico vc vai entende melhor link
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...