Tudo que Ragnar Lothbrook postou
- Simple Task 3.0
-
Função que identifica posição do Target.
Lucas, como disse no inicio do tópico, é uma magia. Ja utilizei seu metódo e não funcionou anteriormente. Nogard, já tentei esta função, mas a coloquei novamente pra te mostrar os erros que ocorrem. Coloquei assim: local ppos = getCreaturePosition(target) local from = {x=ppos.x, y=ppos.y, z=ppos.z} <---- LINHA 24 DO ERRO local posr1 = {x=ppos.x-1, y=ppos.y-1, z=pops.z} local posr2 = {x=ppos.x+1, y=ppos.y-1, z=ppos.z} local posr3 = {x=ppos.x+1, y=ppos.y+1, z=ppos.z} local posr4 = {x=ppos.x-1, y=ppos.y+1, z=ppos.z} E na hora de teleportar o attacker: function walk1(cid) if isInArea(getCreaturePosition(target), posr1, posr1) then doTeleportThing(cid, posr2) <------ LINHA 32 DO ERRO doCombat(cid, combat, var) end end Aparecem os seguintes erros: [16:49:03.448] [Error - Spell Interface] [16:49:03.448] data/spells/scripts/attack/magia nova.lua [16:49:03.448] Description: [16:49:03.448] (luaGetThingPosition) Thing not found [Error - Spell Interface] [16:49:03.448] data/spells/scripts/attack/magia nova.lua [16:49:03.448] Description: [16:49:03.448] data/spells/scripts/attack/magia nova.lua:24: attempt to index local 'ppos' (a boolean value) [16:49:03.448] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/attack/magia nova.lua) [16:49:03.448] data/spells/scripts/attack/magia nova.lua:32: unexpected symbol near 'then' Creio que ficaria mais fácil se eu postasse o script inteiro, mas é uma magia que criei, e não queria divulga-la no momento. Está ai os erros, se puderem me ajudar, REP+.
-
Função que identifica posição do Target.
Fiz uma magia onde o attacker se teleporta em 4 posições em volta de seu target, mas até onde consegui desenvolver, ele se teleporta em volta de si mesmo com a função 'getCreaturePosition(cid)'. Ja tentei outras funções e o script nem é executado. Aqui está a parte do script onde identifica a posição do target, e designia as posições onde quem ataca, é teleportado: local ppos = onTargetTile(cid, pos) local from = {x=ppos.x, y=ppos.y, z=ppos.z} local posr1 = {x=ppos.x-1, y=ppos.y-1, z=ppos.z} local posr2 = {x=ppos.x+1, y=ppos.y-1, z=ppos.z} local posr3 = {x=ppos.x+1, y=ppos.y+1, z=ppos.z} local posr4 = {x=ppos.x-1, y=ppos.y+1, z=ppos.z} E aqui é UMA das funções que executa estas posições, no caso a primeira: function walk1(cid) if isInArea(onTargetTile(cid, pos), from, from) then doTeleportThing(cid, posr1) then doCombat(cid, combat, var) end end Queria que a magia localizasse a posição do target. Mas creio que esta função que usei esteja errada. REP+ Pra solução do meu problema.
- Sobre Vocations Help
-
NPC identifica item em cima de Coal Basin.
Fiz de outra maneira, mas outrora, quando tiver mais tempo, tento recriar e fazer um update do script usando seu conselho, obrigado.
-
NPC identifica item em cima de Coal Basin.
Não pode ser pelo ID, tem que ser pelo nome mesmo, pois com a refinação o iten ganha o atributo "+1", que a função precisa identificar.
-
NPC identifica item em cima de Coal Basin.
Galera, to criando um NPC ferreiro, mas to com dificuldade no comando onde ele identifica o item em cima da coal basin. Preciso de uma função onde o NPC verifica o item, seja qual for ele, em cima da Coal Basin, para que o item possa ser refinado. Tenho esta função, e não está dando certo: function getThingFromPos(pos) local coal = 0 for stack = 1, 50 do pos.stackpos = stack local item = getIpByName(name) if item and item.uid > 0 then end end return item end Agradeço a quem ajudar, e REP+ para a solução.
-
[AJUDA] /reload items
Cara, reload itens é impossivel, porque o reload que da nos itens da apenas no itens.XML, mas não funciona no itens.OTB. Não tem jeito com itens. Mas para weapons o comando que vem no servidor normal ja funciona. Talkactions.XML <talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/> Talkactions/scripts copie um arquivo LUA qualquer e renomeie para 'reload.lua', abra, apague tudo oque tem dentro e cole: local reloadInfo = { {RELOAD_ACTIONS, "actions", "action"}, {RELOAD_CHAT, "chat", "channels"}, {RELOAD_CONFIG, "config", "configuration"}, {RELOAD_CREATUREEVENTS, "creatureevents", "creature events", "creaturescripts", "creature scripts"}, {RELOAD_GAMESERVERS, "gameservers", "game servers", "servers"}, {RELOAD_GLOBALEVENTS, "globalevents", "global events"}, {RELOAD_GROUPS, "groups"}, {RELOAD_HIGHSCORES, "highscores", "scores"}, {RELOAD_HOUSEPRICES, "houseprices", "house prices", "prices"}, {RELOAD_ITEMS, "items", "item"}, {RELOAD_MONSTERS, "monsters", "monster"}, {RELOAD_MOVEEVENTS, "moveevents", "move events", "movements"}, {RELOAD_NPCS, "npcs", "npc"}, {RELOAD_OUTFITS, "outfits", "outfit"}, {RELOAD_QUESTS, "quests", "quest"}, {RELOAD_RAIDS, "raids", "raid"}, {RELOAD_SPELLS, "spells", "spell"}, {RELOAD_STAGES, "stages", "experience"}, {RELOAD_TALKACTIONS, "talkactions", "talk actions", "talk", "commands"}, {RELOAD_VOCATIONS, "vocations", "vocation"}, {RELOAD_WEAPONS, "weapons", "weapon"}, {RELOAD_ALL, "all", "everything"} } function onSay(cid, words, param, channel) param = param:lower() local str = "Reload type not found." for _, v in ipairs(reloadInfo) do if(table.isStrIn(param, v)) then doReloadInfo(v[1], cid) str = "Reloading " .. v[2] .. "..." break end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) return TRUE end Qualquer problema poste que tento ajudar.
- Sobre Vocations Help
-
Script Transform Wodbo
Não testei, qualquer erro, poste aqui que arrumo pra você. function onCastSpell(cid, var) local position1 = {x=getThingPosition(getPlayerPosition(cid)).x+1, y=getThingPosition(getPlayerPosition(cid)).y+1, z=getThingPosition(getPlayerPosition(cid)).z} -- mude aque as pos if getPlayerVocation(cid) == 1 then if getPlayerLevel(cid) >= 2 then doPlayerSay(cid, '3', TALKTYPE_ORANGE_1) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+4) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+5) doPlayerSetVocation(cid,6) doSendMagicEffect(position1, 10) -- 10 é o effect doSetCreatureOutfit(cid, {lookType=7}, -1) doSendMagicEffect(getPlayerPosition(cid), 8) -- o efeito q irar aparece ao transformar. else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "9.") doSendMagicEffect(getPlayerPosition(cid), 10) -- o efeito q irar aparece se você não tiver nenhum dos requisitos acima. doPlayerSendCancel(cid, "Voce nao tem level 100.") end else doPlayerSendCancel(cid, "Voce nao tem mais transofrmaçoes.") end
-
Script Transform Wodbo
Testa ai: function onCastSpell(cid, var) local position1 = {x=getThingPosition(getPlayerPosition(cid)).x+1, y=getThingPosition(getPlayerPosition(cid)).y+1, z=getThingPosition(getPlayerPosition(cid)).z} -- mude aque as pos if getPlayerVocation(cid) == 1 then if getPlayerLevel(cid) >= 2 then doPlayerSay(cid, '3', TALKTYPE_ORANGE_1) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+4) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+5) doPlayerSetVocation(cid,6) doSendMagicEffect(position1, 10) -- 10 é o effect doSetCreatureOutfit(cid, {lookType=7}, -1) doSendMagicEffect(getPlayerPosition(cid), 8) -- o efeito q irar aparece ao transformar. else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "9.") doSendMagicEffect(getPlayerPosition(cid), 10) -- o efeito q irar aparece se você não tiver nenhum dos requisitos acima. end
-
Sistema de rank militar não está funcionando.
Testa este script, bem mais dinâmico e fácil de configurar, em MOD: Perfect Rep System
-
Runas que são infinitas mas que não estão voltando ao normal!
No itens.XML não tem valor de cargas. Em itens.XML [usarei a SD de exemplo]: <item id="2268" article="a" name="sudden death rune"> <attribute key="runeSpellName" value="adori gran mort" /> <attribute key="weight" value="7" /> </item> Em spells.XML: <rune name="Sudden Death" id="2268" allowfaruse="1" charges="3" lvl="45" maglv="15" exhaustion="1000" needtarget="1" blocktype="solid" event="script" value="attack/sudden death.lua"/> Se não funcionar, só postar que ajudo resolver.
-
Sistema de rank militar não está funcionando.
Bom, se eu entendi bem esse script, quando você morre, você perde frag. Tenta matar um player, e ver se seus frags voltam pra 0, e mate de novo pra ver se ele vai pra +1.
-
[ERROR] Scripter
Ta faltando um 'end'. Tenta este: --// local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid msg = string.lower(msg) --\\ ---- local need = { --item id....quantidade {id = 2145, qt = 25}, } local pokemon = "Moltres" -- nome do poke ----- --// selfSay("olá, você gostaría de compra Algum Pokemon mega evoluido?!", cid) talkState[talkUser] = 2 return true end elseif msgcontains(msg, 'yes') and talkState[talkUser] == 2 then if getPlayerItemCount(cid, need[1].id) < need[1].qt then selfSay("você não tem 25 Diamonds para compra um Pokemon mega evoluido!", cid) talkState[talkUser] = 0 return true end if not addPokeToPlayer(cid, pokemon, 0, -1, "normal", true) then selfSay("voce está com 6 pokemons e não pode fazer a compra do mega Pokemon!", cid) talkState[talkUser] = 0 return true end for i = 1, #need do doPlayerRemoveItem(cid, need[i].id, need[i].qt) end addPokeToPlayer(cid, pokemon, 0, 1, 'normal', true) selfSay("nossa muito bom, obrigado e faça um bom proveito do seu novo pokémon!", cid) talkState[talkUser] = 0 return true end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)Spawn player primeira vez que entra no server.
Entre na sua database, procure os players 'samples'. Mude as posições e o ID da Town lá. Não tem ah ver com account manager, já que é por site, é na database que faz a configuração.
-
Demon Oak e npc de addon
O problema da demon oak não da pra resolver, pois o script se baseia no ID da arvore, não é colocado UniqueID ou ActionID como outros scripts, remova as outras arvores do mapa, é o unico jeito. Quanto ao NPC, não é no LUA que você o coloca pra venda, é no XML. Abra o XML do seu NPC. E adicione esta tag nos parametros: <parameter key="shop_sellable" value="itenname1,itenid1,itenprice1;itenname2,itenid2,itenprice2" /> É só alterar de acordo, colocando o nome do iten, o ID e o preço em golds. Caso não entenda, é aqui que fica esta tag: <?xml version="1.0" encoding="UTF-8"?><npc name="Nimral" script="default.lua" walkinterval="0" floorchange="0"> <health now="150" max="150"/> <look type="129" head="114" body="119" legs="114" feet="114" corpse="2212"/> <parameters> <parameter key="module_travel" value="1"/> <parameter key="message_greet" value="Hello |PLAYERNAME|. If you don't know where to flow, say {trade}."/> <parameter key="shop_sellable" value="itenname1,itenid1,itenprice1;itenname2,itenid2,itenprice2" /> </parameters> </npc>
-
Sistema de rank militar não está funcionando.
2 coisas: 1- Mude a storage e teste novamente, aqui: [Altere o valor, bem aleatóreo] fragsStorage = 600 2- Modifique no seu script 'config.lua', pois seus frags podem estar sendo removidos automaticamente. [Na parte de frags em config.lua, copie] seFragHandler = true redSkullLength = 1 * 24 * 60 * 60 blackSkullLength = 3 * 24 * 60 * 60 dailyFragsToRedSkull = 10 weeklyFragsToRedSkull = 60 monthlyFragsToRedSkull = 130 dailyFragsToBlackSkull = 15 weeklyFragsToBlackSkull = 90 monthlyFragsToBlackSkull = 150 dailyFragsToBanishment = 99999 weeklyFragsToBanishment = 99999 monthlyFragsToBanishment = 99999 blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true advancedFragList = true Se não for nenhum dos dois, poste que faço o possível pra encontrar a solução.
-
Como vender item editado no npc ?
Vou fazer o script completo pra você então. no XML você coloca: <?xml version="1.0" encoding="UTF-8"?> <npc name="Mad" script="data/npc/scripts/loot.lua" walkinterval="2000" floorchange="0"> <health now="150" max="150"/> <look type="141" head="78" body="86" legs="88" feet="0" addons="3"/> <parameters> <parameter key="module_shop" value="1"/> <parameter key="message_greet" value="Ola |PLAYERNAME|. Eu vendo alguns itens Caso não consiga comprar algum iten, diga {buy staff of baiak}, etc."/> <parameter key="shop_buyable" value="staff of baiak,12609,5000000;"/> </parameters> </npc> E no arquivo lua você cola isto: 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 -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! keywordHandler:addKeyword({'itens'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'COLOQUE OS ITENS QUE O NPC VENDE'}) npcHandler:addModule(FocusModule:new()) Sendo assim, se o player disser: "buy staff of baiak", o NPC vai perguntar "voce quer a staff of baiak por 5kk ?", e é só confirmar, que a compra é feita.
-
AJUDA COM ITENS
Aguardo sua averiguação.
-
Que deixa vc passa pela porta
Você quer exatamente um NPC que faça isso ? Pode ser teletransportando o player pra area ? Pode ser uma porta que cobre esta quantia para o player entrar ?
-
(Resolvido)Addons Fulls
Não da todos os addons de uma só vez, mas ele pode usar o addon doll quantas vezes quiser. em talkactions.xml, adicione a tag: <talkaction words="!addon" event="script" value="addondoll.lua"/> Em scripts/addon.lua, adicione: function onSay(cid, words, param) local femaleOutfits = { ["beggar"]={157}, ["shaman"]={158}, ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156} } local maleOutfits = { ["beggar"]={153}, ["shaman"]={154}, ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152} } local msg = {"Digite o nome correto!", "Voce não possui Addon Doll!", "Bad param!", "Você recebeu seu addons!"} local param = string.lower(param) if(getPlayerItemCount(cid, 9693) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) end end 9693 = ID do addon doll, pode ser mudado.
-
AJUDA COM ITENS
Toda modificação que houver atributos como "absorbPercent" no itens.XML, deve ser adicionado ao movements.xml. Eu diria pra usar a tag no iten, em itens.XML: <attribute key="absorbPercentAll" value="50" /> Mas se você já fez isso, apenas adicione em movements.xml: Se for simples, sem priorização de vocações. Se houver level adicione a flag: level="8" <movevent type="Equip" itemid="148" slot="ring, necklace, armor, legs, feet, shield, head" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="148" slot="ring, necklace, armor, legs, feet, shield, head" event="function" value="onDeEquipItem"/> slot = Escolha entre: ring, necklace, armor, legs, feet, shield, head. De acordo com o iten. Se houver vocação para poder usa-lo, adicione assim: <movevent type="Equip" itemid="148" slot="ring, necklace, armor, legs, feet, shield, head" event="function" value="onEquipItem"> <vocation id="6"/> <vocation id="10" showInDescription="0"/> <vocation id="5"/> <vocation id="9" showInDescription="0"/> </movevent><movevent type="DeEquip" itemid="148" slot="ring, necklace, armor, legs, feet, shield, head" event="function" value="onDeEquipItem"/> Se for uma arma, ou wand, precisa adicionar em ambos slots de hands [mãos], assim: <movevent type="Equip" itemid="235" slot="right-hand" function="onEquipItem"/> <movevent type="DeEquip" itemid="235" slot="right-hand" function="onDeEquipItem"/> <movevent type="Equip" itemid="235" slot="left-hand" function="onEquipItem"/> <movevent type="DeEquip" itemid="235" slot="left-hand" function="onDeEquipItem"/> Repare que é o mesmo ID, pra função funcionar em ambas as mãos. Se houver vocação para a arma ou wand: <movevent type="Equip" itemid="150" slot="right-hand" function="onEquipItem"> <vocation id="5"/> <vocation id="6"/> <vocation id="9" showInDescription="0"/> <vocation id="10" showInDescription="0"/> </movevent> <movevent type="DeEquip" itemid="150" slot="right-hand" function="onDeEquipItem"/> <movevent type="Equip" itemid="150" slot="left-hand" function="onEquipItem"> <vocation id="5"/> <vocation id="6"/> <vocation id="9" showInDescription="0"/> <vocation id="10" showInDescription="0"/> </movevent> <movevent type="DeEquip" itemid="150" slot="left-hand" function="onDeEquipItem"/> Espero ter ajudado. Qualquer problema, poste que continuarei lhe ajudando.
-
Como vender item editado no npc ?
Isso acontece porque o ID do iten duplicado vem antes do ID do item original. Pois como tem a mesma sprite, o NPC não detecta apenas o numero do ID, mas também da sprite, onde entra em conflito. Faça um comando por IDS, como: "sell staf original, yes" ou "sell 4 staff original. yes" Bem como este: Arquivo XML: <?xml version="1.0" encoding="UTF-8"?> <npc name="Mad" script="data/npc/scripts/loot.lua" walkinterval="2000" floorchange="0"> <health now="150" max="150"/> <look type="141" head="78" body="86" legs="88" feet="0" addons="3"/> <parameters> <parameter key="module_shop" value="1"/> <parameter key="message_greet" value="Ola |PLAYERNAME|. Eu compro alguns loots. Caso não consiga vender algum iten, use o exemplo: {sell 3 tower shield}, {sell 2 warlord sword}, etc."/> <parameter key="shop_sellable" value="royal helmet,2498,20000;warrior helmet,2475,5000;crusader helmet,2497,9000;crown helmet,2491,3000;devil helmet,2462,2000;mystic turban,2663,500;chain helmet,2458,35;iron helmet,2459,30;steel boots,2645,30000;boots of haste,2195,30000;golden boots,2646,100000;magic plate armor,2472,120000;dragon scale mail,2492,60000;demon armor,2494,90000;golden armor,2466,20000;crown armor,2487,9000;knight armor,2476,5000;blue robe,2656,15000;lady armor,2500,2500;plate armor,2463,400;brass armor,2465,200;chain armor,2464,100;golden legs,2470,40000;crown legs,2488,10000;knight legs,2477,5000;plate legs,2647,500;brass legs,2487,100;mastermind shield,2514,40000;demon shield,2520,20000;blessed shield,2523,150000;great shield,2522,100000;vampire shield,2534,20000;medusa shield,2536,15000;amazon shield,2537,4000;crown shield,2519,5000;tower shield,2528,5000;guardian shield,2515,200;beholder shield,2518,1500;dwarven shield,2525,100;magic longsword,2390,200000;warlord sword,2408,140000;magic sword,2400,100000;giant sword,2393,10000;bright sword,2407,6000;ice rapier,2396,4000;fire sword,2392,3000;serpent sword,2409,1500;spike sword,2383,800;two handed sword,2377,400;broad sword,2413,70;short sword,2406,30;sword,2376,25;dragon lance,2414,8000;stonecutter axe,2431,90000;guardian halberd,2427,7500;fire axe,2432,10000;knight axe,2430,2000;double axe,2387,200;halberd,2381,200;battle axe,2378,100;hatchet,2388,20;war hammer,2391,6000;thunder hammer,2421,120000;skull staff,2436,10000;dragon hammer,2434,2000;clerical mace,2423,200;battle hammer,2417,60;mace,2398,30;"/> </parameters> </npc> royal helmet,2498,20000; = Nome que está no itens.xml, id que esta no itens.xml, valor em golds; No script 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 -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! keywordHandler:addKeyword({'helmets'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy royal (40k), warrior (6k), crusader (9k), crown (5k), devil (4k), chain (35gp) and iron helmets (30gp), also mystic turbans (500gp).'}) keywordHandler:addKeyword({'boots'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden boots (100k), steel boots (40k) and boots of haste (40k).'}) keywordHandler:addKeyword({'armors'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden (30k), crown (20k), knight (5k), lady (7,5k), plate (400gp), brass (200gp) and chain armors (100gp), also mpa (100k), dsm (60k) and blue robes (15k).'}) keywordHandler:addKeyword({'legs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy golden (80k), crown (15k), knight (6k), plate (500gp) and brass legs (100gp).'}) keywordHandler:addKeyword({'shields'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy blessed (150k), great (100k), demon (40k), vampire (25k), medusa (8k), amazon (4k), crown (5k), tower (5k), dragon (3k), guardian (2k), beholder (1k), and dwarven shields (100gp), also mms (80k).'}) keywordHandler:addKeyword({'swords'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy giant (10k), bright (6k), fire (3k) serpent (1.5k), spike (800gp) and two handed swords (400gp), also ice rapiers (4k), magic longswords (150k), magic swords (90k), warlord swords (100k) broad swords (70gp), short swords (30gp), sabres (25gp) and swords (25gp).'}) keywordHandler:addKeyword({'axes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy fire (10k), guardian halberds (7,5k) knight (2k), double (200gp) and battle axes (100gp), also dragon lances (10k), stonecutters axes (90k), halberds (200gp) and hatchets (20gp).'}) keywordHandler:addKeyword({'clubs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I buy thunder hammers (90k), war (6k), dragon (2k) and battle hammers (60gp), also skull staffs (10k) and clerical maces (200gp).'}) npcHandler:addModule(FocusModule:new()) Com este script, basta dizer ''sell 'quantidade' 'nome', yes", que o NPC compra qualquer iten com a mesma sprite. É impossivel concertar este erro. Qualquer erro poste aqui que ajudo a resolver.
-
Arma para paladins
Ficou bom. Boa sorte com seu server.