Wooow, muito bom...
REP++ Com certeza !
Por Omega, 05 de out. de 2013 em NPCs, monsters e raids
info
Grupo: Visconde
Registrado: 24/05/11
Posts: 391
Reputação: +102

Wooow, muito bom...
REP++ Com certeza !
info
Grupo: Conde
Registrado: 29/04/09
Posts: 904
Reputação: +389
Char no Tibia: Jabuti Selvagem

Omega, seus scripts sao otimos e alem disso vc eh sempre criativo
Esse ai ficou demais!
info
Grupo: Campones
Registrado: 31/08/13
Posts: 93
Reputação: +17
Char no Tibia: Evarin Thin

Quando ele é derrotado, adiciona um storage (para ser usado como você quiser), itens, dinheiro e experiência.
como eu coloco pra o player so poder usa um item com essa storage?????
REP+
Editado Novembro 1 por Zaruss
"No arquivo monsters2.lua, configure a experiência (exp), o dinheiro (money), o item e a quantidade (count) desse item que o jogador ganhará quando derrotar o Bruce. Também deve-se configurar o tempo de exhaust, como indicado no arquivo;"
Nessa parte ele da erro n entrega a xp e nem os items mais o npc retorna e n ganha nada quando o player mata o monstro.
* oque pode ser ?
* Meu server e o TFS 0.3.6pl1.r83
Vlw e mais REP pelo NPC.
Editado Novembro 1 por garep
info
Grupo: Marquês
Registrado: 16/06/07
Posts: 1.2k
Reputação: +377
Gênero: Masculino
Char no Tibia: Nenhum

"No arquivo monsters2.lua, configure a experiência (exp), o dinheiro (money), o item e a quantidade (count) desse item que o jogador ganhará quando derrotar o Bruce. Também deve-se configurar o tempo de exhaust, como indicado no arquivo;"
Nessa parte ele da erro n entrega a xp e nem os items mais o npc retorna e n ganha nada quando o player mata o monstro.
* oque pode ser ?
* Meu server e o TFS 0.3.6pl1.r83
Vlw e mais REP pelo NPC.
Cara, o NPC aparece, mas ele não dá os itens? Aparece algum erro no executável?
info
Grupo: Visconde
Registrado: 09/08/10
Posts: 314
Reputação: +19
Char no Tibia: não tenho

Estou com esse problema..
[Warning - Monsters::loadMonster] Missing voices.speed. (data/monster/novos/bruce/challenger.xml)
[Warning - Monsters::loadMonster] Missing voices.chance. (data/monster/novos/bruce/challenger.xml)
info
Grupo: Marquês
Registrado: 16/06/07
Posts: 1.2k
Reputação: +377
Gênero: Masculino
Char no Tibia: Nenhum
Informações
Códigos
<?xml version="1.0" encoding="UTF-8"?> <npc name="Bruce The Fighter" script="data/npc/scripts/challenger.lua" walkinterval="3000" floorchange="0"> <health now="100" max="100"/> <look type="367" head="0" body="38" legs="114" feet="94" addons="0"/> <parameters> <parameter key="message_greet" value="Eu nao falo com inuteis como voce... a menos que voce queira um {desafio}."/> <parameter key="message_farewell" value="Va embora logo!"/> <parameter key="message_walkaway" value="Que bons ventos o levem!"/> </parameters> </npc>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 -- Bruce lutará novamente o jogador que o derrotar? [true/false] local fight_again = true if msgcontains(msg, "desafio") then if fight_again and getPlayerStorageValue(cid, 69508) < os.time() then selfSay("Então você quer me desafiar para um duelo? HA, prepare-se para morrer!") local pos = getThingPos(getNpcCid()) local summonName = getCreatureName(getNpcCid()) local lookdir = getCreatureLookDirection(cid) doRemoveCreature(getNpcCid()) local summonCid = doCreateMonster(summonName, pos) doCreatureSetLookDirection(summonCid, lookdir) addEvent(checkForBruce, 5000, summonName) else selfSay("Ah, sinto muito, mas não estou pronto para uma nova luta com você.", cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) function checkForBruce(name) local Bruce = isCreature(getCreatureByName("Bruce The Fighter")) and getCreatureByName("Bruce The Fighter") or false if isNpc(Bruce) then return false end if not Bruce then Bruce = isCreature(getCreatureByName("Bruce The Fighter_evolved")) and getCreatureByName("Bruce The Fighter_evolved") or Bruce end if isCreature(getCreatureTarget(Bruce)) then addEvent(checkForBruce, 5000, name) return true else local pos = getThingPos(Bruce) doRemoveCreature(Bruce) doCreateNpc(name, pos) end end<?xml version="1.0" encoding="UTF-8"?> <monster name="Bruce The Fighter" nameDescription="a challenger" race="blood" experience="1800" speed="320" manacost="0"> <health now="1600" max="1600"/> <look type="367" head="0" body="38" legs="114" feet="94" addons="0" corpse="6080"/> <targetchange interval="5000" chance="20"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <script> <event name="Monster1"/> </script> <attacks> <attack name="melee" interval="2000" skill="80" attack="70"/> <attack name="physical" interval="2000" chance="50" range="7" min="-45" max="-105"> <attribute key="shootEffect" value="spear"/> </attack> <attack name="melee" interval="2000" chance="15" range="7" radius="3" target="0" min="-50" max="-105"> <attribute key="areaEffect" value="blackspark"/> </attack> </attacks> <defenses armor="30" defense="30"> <defense name="healing" interval="2000" chance="30" min="30" max="50"> <attribute key="areaEffect" value="blueshimmer"/> </defense> </defenses> <elements> <element firePercent="0"/> <element energyPercent="10"/> <element deathPercent="25"/> <element physicalPercent="25"/> <element holyPercent="-20"/> </elements> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="1"/> <immunity poison="0"/> <immunity lifedrain="0"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> <voices> </voices> <loot> </loot> </monster><?xml version="1.0" encoding="UTF-8"?> <monster name="Bruce The Fighter" nameDescription="a challenger" race="blood" experience="1800" speed="320" manacost="0"> <health now="16000" max="16000"/> <look type="235" head="20" corpse="6348"/> <targetchange interval="5000" chance="20"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <script> <event name="Monster2"/> </script> <attacks> <attack name="melee" interval="2000" skill="80" attack="70"/> <attack name="physical" interval="2000" chance="50" range="7" min="-45" max="-105"> <attribute key="shootEffect" value="spear"/> </attack> <attack name="melee" interval="2000" chance="15" range="7" radius="3" target="0" min="-50" max="-105"> <attribute key="areaEffect" value="blackspark"/> </attack> </attacks> <defenses armor="30" defense="30"> <defense name="healing" interval="2000" chance="30" min="30" max="50"> <attribute key="areaEffect" value="blueshimmer"/> </defense> </defenses> <elements> <element firePercent="0"/> <element energyPercent="10"/> <element deathPercent="25"/> <element physicalPercent="25"/> <element holyPercent="-20"/> </elements> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="1"/> <immunity poison="0"/> <immunity lifedrain="0"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> <voices interval="5000" chance="20"> <voice sentence="I shall take your soul!" yell="1"/> <voice sentence="Hail the Dark Brotherhood!" yell="1"/> <voice sentence="Come my Dark Breathren!"/> <voice sentence="I will take us both to hell!"/> </voices> <loot> </loot> </monster>TAGs
Configuração/Instalação
Recomendo que o Bruce esteja em uma sala onde somente um jogador de cada vez possa entrar.
Editado Novembro 1 por omega blueheaven