Ir para conteúdo

xXPaquitoXx

Campones
  • Total de itens

    23
  • Registro em

  • Última visita

Tudo que xXPaquitoXx postou

  1. Preciso de um scripter para meu ot

  2. Vou testar :smile_positivo: nao deu velho id dos itens ta coreto que coloquei
  3. 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 Sweet(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end for i = 1, table.maxn(parameters.items) do if getPlayerItemCount(cid, parameters.items[i]) <= 0 then npcHandler:say('You don\'t have these items!', cid) return true end end for i = 1, table.maxn(parameters.items) do doPlayerRemoveItem(cid,parameters.items[i], 1) end npcHandler:say('Here is your item!', cid) doPlayerAddItem(cid, parameters.reward,1) return true end keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can forge Amulet, {koshei ancient amulet},{huge chunk of crude iron},{piece of draconian steel},{piece of royal steel} and {piece of hell steel}!"}) local node1 = keywordHandler:addKeyword({'koshei ancient amulet'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a all piece of broken amulet for a Koshei Ancient Amulet?'}) node1:addChildKeyword({'yes'}, Sweet, {items = {8262,8263,8264,8265},reward = 8266}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node2 = keywordHandler:addKeyword({'huge chunk of crude iron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a Giant Sword for a Huge Chunk of Crude Iron?'}) node2:addChildKeyword({'yes'}, Sweet, {items = {2393},reward = 5892}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node3 = keywordHandler:addKeyword({'piece of draconian steel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a Dragon Shield for a Piece of Draconian Steel?'}) node3:addChildKeyword({'yes'}, Sweet, {items = {2516},reward = 5889}) node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node4 = keywordHandler:addKeyword({'piece of royal steel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a Crown Armor for a Piece of Royal Steel?'}) node4:addChildKeyword({'yes'}, Sweet, {items = {2487},reward = 5887}) node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node5 = keywordHandler:addKeyword({'piece of royal steel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to trade a Devil Helmet for a Piece of Hell Steel?'}) node5:addChildKeyword({'yes'}, Sweet, {items = {2462},reward = 5888}) node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) npcHandler:addModule(FocusModule:new()) Se nao souber add aviza que edito post ------------------------ TE ajudei clica ali :button_ok: REP +++++
  4. bom eu queria essas 2 outfit Das asas quando ele fica parado que elas fiquem batendo pra frente e pra tras o msm quando ele anda =re+
  5. cara aquelas tuas outfits achei maneras tem como me passa elas?
  6. nome do seu script.lua unction onEquip(cid, item, slot) local rate = {} if getPlayerLevel(cid) <= 200 then rate = 1.3 elseif getPlayerLevel(cid) > 200 and getPlayerLevel(cid) <= 280 then rate = 1.15 elseif getPlayerLevel(cid) > 280 then rate = 1.05 end function onDeEquip(cid, item, slot) return TRUE end Tag movements.xml <movevent type="Equip" itemid="ID DO SEU item" slot="tipo do item" event="script" value="nome do seu script.lua"/> <movevent type="DeEquip" itemid="ID DO SEU item" slot="tipo do item" event="script" value="nome do seu script.lua"/> nao testei se der erro posta ai -------------------------- Te ajudei clica ali :button_ok: REP ++++++++
  7. xXPaquitoXx

    Pedido De Scripts

    Bom nao sei se seria isso mais ta ai!! Abra data\talkactions\talkactions.xml Em talkctions clique com botao direito do mause e em editar, feito isso adicione o seguinte : <talkaction words="/jail" script="Cadeia.lua"/> <talkaction words="/unjail" script="Cadeia.lua"/> Feche e salve o arquivo xml!!! Agora vá em data\talkactions\scripts crie um bloco de nota com seguinte nome Cadeia.lua e adicione o seguinte: --xXPaquitoXx-- default_jail = 300 -- muda para tempo que deseja que o jogador fique preso obs. é em segundos grouprequired = 3 -- StorageValue that the player gets -- jailedstoragevalue_time = 1338 jailedstoragevalue_bool = 1339 -- POSICAO DA CADEIA: -- ]jailpos = { x : x = 1196, y = 1100, z =7 } -- posiçao da cadeia já mudei unjailpos = { x = 1196, y = 1100, z =7 } --posiçao do templo -- auto kicker, dont edit jail_list = {} jail_list_work = 0 function checkJailList(param) addEvent(checkJailList, 1000, {}) for targetID,player in ipairs(jail_list) do if isPlayer(player) == TRUE then if getPlayerStorageValue(player, jailedstoragevalue_time) < os.time() then doTeleportThing(player, unjailpos, TRUE) setPlayerStorageValue(player, jailedstoragevalue_time, 0) setPlayerStorageValue(player, jailedstoragevalue_bool, 0) table.remove(jail_list,targetID) doPlayerSendTextMessage(player,MESSAGE_STATUS_CONSOLE_ORANGE,'Você infringio regras do ot está preso! Até logo') --edita para fraze que desejar end else table.remove(jail_list,targetID) end end end ------------------------------- function onSay(cid, words, param) if jail_list_work == 0 then jail_list_work = addEvent(checkJailList, 1000, {}) end if param == '' and (words == '!unjail' or words == '/unjail') then if getPlayerStorageValue(cid, jailedstoragevalue_time) > os.time() then doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'Você está preso até ' .. os.date("%H:%M:%S", getPlayerStorageValue(cid, jailedstoragevalue_time)) .. ' (Agora são: ' .. os.date("%H:%M:%S", os.time()) .. ').') else if getPlayerStorageValue(cid, jailedstoragevalue_bool) == 1 then table.insert(jail_list,cid) doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'Você vai sair da prisão em um segundo.') else doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'Você não está preso.') end end return TRUE end local jail_time = -1 for word in string.gmatch(tostring(param), "(%w+)") do if tostring(tonumber(word)) == word then jail_time = tonumber(word) end end local isplayer = getPlayerByName(param) if isPlayer(isplayer) ~= TRUE then isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+1)) if isPlayer(isplayer) ~= TRUE then isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+2)) if isPlayer(isplayer) ~= TRUE then isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+3)) end end end if jail_time ~= -1 then jail_time = jail_time * 60 else jail_time = default_jail end if words == '!jail' or words == '/jail' then if getPlayerGroupId ( cid ) >= grouprequired then if isPlayer(isplayer) == TRUE then doTeleportThing(isplayer, jailpos, TRUE) setPlayerStorageValue(isplayer, jailedstoragevalue_time, os.time()+jail_time) setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 1) table.insert(jail_list,isplayer) doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'Você está preso '.. getCreatureName(isplayer) ..' até ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (Agora são: ' .. os.date("%H:%M:%S", os.time()) .. ').') doPlayerSendTextMessage ( isplayer, MESSAGE_INFO_DESCR, 'Você foi preso por '.. getCreatureName(cid) ..' até ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (Agora sao: ' .. os.date("%H:%M:%S", os.time()) .. ').') return TRUE else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "O player com este nome não existe ou está offline.") return FALSE end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não pode libertar outros jogadores.") return FALSE end elseif words == '!unjail' or words == '/unjail' then if getPlayerGroupId ( cid ) >= grouprequired then if isPlayer(isplayer) == TRUE then doTeleportThing(isplayer, unjailpos, TRUE) setPlayerStorageValue(isplayer, jailedstoragevalue_time, 0) setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 0) table.remove(jail_list,targetID) doPlayerSendTextMessage(isplayer,MESSAGE_STATUS_CONSOLE_ORANGE,getCreatureName(cid) .. 'vou deixar você sair da prisão!') doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'Voce está solto '.. getCreatureName(isplayer) ..'.') else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "O player com este nome não existe ou está offline.") return FALSE end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não pode libertar outros jogadores.") return FALSE end end return FALSE end Bom para prender você digita /jail bandido Para tiralo da cadeia /unjail bandido Legenda Nome do jogador á banir! Este script nao é de minha autoria dei poucas editadas nele somente, entao creditos ao autor, nao sei nome entao se aparece dono poste que ponho seus devidoscreditos! --------------------------------------------------------- AJUDEI CLICA ALI :button_ok: REP +
  8. xXPaquitoXx

    Npc

    Voce quer um npc de batalha duelo isso? entao tentei acha algum script de npc duel mais nao achei :s
  9. se funcina vo te da uns 10 rep *------* testado o jogador lvl 1000 moreu e quem matou ganhou nada :confused:
  10. Abra a pasta data vá em spells, script,attack crie um bloco de notas com nome earthquake.lua e coloque isso dentro local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 127) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 127) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) function onCastSpell(cid, var) doCreatureSay(cid,"Earthquake", TALKTYPE_SAY) return doCombat(cid, combat, var) end e feche e clique em salvar feito isso vá em data, spells.xml clique com botao direito do mause e clique em editar e coloque isso lá <instant name="Earth quake" words="Earthquake" lvl="50005" mana="770" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="attack/earthquake.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="3"/> <vocation id="4"/> <vocation id="5"/> <vocation id="6"/> <vocation id="7"/> <vocation id="8"/> </instant> As vocaçoes voce pode mudar de acordo como voce desejar so tira os id que nao quizer. Feche o spells.xml e clique em salvar! Bom eu testei aqui a magia nao funcino o script tem algo de errado acho que era assim local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 127) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1) function onCastSpell(cid, var) doCreatureSay(cid,"Earthquake", TALKTYPE_SAY) return doCombat(cid, combat, var) end Causa a magia nao for essa so muda os script tag e lua add igual msm nome tudo ai so muda o script!!! qualquer duvida posta ai! :positive: --------------------------------------------- Ajudei Clica no :button_ok: REP +
  11. xXPaquitoXx

    Npc

    O que voce quer que esse npc faça exatamente discreva melhor para alguem poder ajudalo como por exemplo dizendo as fala dele para que ele vai servir outfit dele
  12. Tipo voce jogador lvl 2000 mato outro lvl 2500 se ganha coraçao dele com nome escrito assim: 1:00 You see the Heart. It weighs 35.00 oz. Esse e o Heart de (Vip) Faastzaum morto no level 2455, pelo (Vip) Felipeex[4069]. o ot que jogo tem lvl 1000 ate 2000 barba que é o item dwarven beard, lvl 2000 a 3000 coraçao que é o item Heart,lvl 3000 ate 4000 coraço flamejante que é o item burning Heart e do lvl 4000 ate 500 ganha um cerebro que o item orshabaal's brain depois disso nao sei se tem Ninguem consegui? osso precizava muito dele :confused:
  13. Tipo do script:GlobalEvents, Spells & CreatureEvents Protocolo (versão do Tibia):8.6 Servidor utilizado:Snowz Thyranic 3.1 (8.6) Nível de experiência: Adicionais/Informações:matar player e tirar coraçao com nivel de lvl exemplo(Vip) PaqitoO[3089] Matou Firedi Gerralfa[2567]! E Arrancou Sua Barba! [Nivel 2000 a 3000]. já existe um de matar e ganhar coraçao mais nao com level se puder eu agradeço com +rep ty script feito por amoeba13 data/creaturescripts/scripts/heartnb.lua Tag :tongue2:
  14. obrigado o foco seria ganhar o coraçao tipo um trofel exp.: voce no level 100 mata um 250 voce ganha um "trofel" pela morte é legal essa ideia no refugia tem do lvl 1000 a 2000 barba, do level 2000 a 3000 coraçao, do level 3000 a 4000 coraçao flamejante e do level 4000 a 5000 cerebro :smile_positivo:
  15. tem como faze pra ganhar o coraçao por lvl exp.: Falano de tal matou ciclano e arancou seu coraçao level 100 à 200. se funcionar = rep +
  • Quem Está Navegando   0 membros estão online

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