Ir para conteúdo

FlavioHulk

Membro
  • Registro em

  • Última visita

Tudo que FlavioHulk postou

  1. -- Constant indexes for defining default messages. MESSAGE_GREET = 1 -- When the player greets the npc. MESSAGE_FAREWELL = 2 -- When the player unGreets the npc. MESSAGE_BUY = 3 -- When the npc asks the player if he wants to buy something. MESSAGE_ONBUY = 4 -- When the player successfully buys something via talk. MESSAGE_BOUGHT = 5 -- When the player bought something through the shop window. MESSAGE_SELL = 6 -- When the npc asks the player if he wants to sell something. MESSAGE_ONSELL = 7 -- When the player successfully sells something via talk. MESSAGE_SOLD = 8 -- When the player sold something through the shop window. MESSAGE_MISSINGMONEY = 9 -- When the player does not have enough money. MESSAGE_NEEDMONEY = 10 -- Same as above, used for shop window. MESSAGE_MISSINGITEM = 11 -- When the player is trying to sell an item he does not have. MESSAGE_NEEDITEM = 12 -- Same as above, used for shop window. MESSAGE_NEEDSPACE = 13 -- When the player don't have any space to buy an item MESSAGE_NEEDMORESPACE = 14 -- When the player has some space to buy an item, but not enough space MESSAGE_IDLETIMEOUT = 15 -- When the player has been idle for longer then idleTime allows. MESSAGE_WALKAWAY = 16 -- When the player walks out of the talkRadius of the npc. MESSAGE_DECLINE = 17 -- When the player says no to something. MESSAGE_SENDTRADE = 18 -- When the npc sends the trade window to the player MESSAGE_NOSHOP = 19 -- When the npc's shop is requested but he doesn't have any MESSAGE_ONCLOSESHOP = 20 -- When the player closes the npc's shop window MESSAGE_ALREADYFOCUSED = 21 -- When the player already has the focus of this npc. MESSAGE_WALKAWAY_MALE = 22 -- When a male player walks out of the talkRadius of the npc. MESSAGE_WALKAWAY_FEMALE = 23 -- When a female player walks out of the talkRadius of the npc. Basta usar um dos ID acima, e incluir no final do script do NPC npcHandler:setMessage(MESSAGE_WALKAWAY, "Example") npcHandler:setMessage(MESSAGE_FAREWELL, "Example")
  2. poste seu script NPCHandler na pasta libs em Npc
  3. Apaga a linha e redigita novamente, o editor tá reconhecendo com caractere especial
  4. Realmente funciona dessa maneira, porém é o que está descrito no tópico haha, valeu !
  5. tente colocar : monster:setReward(true)
  6. posta seu script de reload que está na pasta talkactions
  7. local ip = {} local function checkPlayerIp(cid) if not isPlayer(cid) then return end if ip[getPlayerIp(cid)] == true then return true end return false end function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if checkPlayerIp(cid) then doTeleportThing(cid, fromPosition, false) doSendMagicEffect(position, CONST_ME_MAGIC_BLUE doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não pode entrar aqui com mais de um IP") else ip[getPlayerIp(cid)] = true end return true end Tentei uma chance frustrada kk !
  8. Qual TFS? É fundamental informar o TFS, assim saberemos trabalhar melhor em cima das possíveis distros !
  9. Há tutoriais aqui no fórum, e na net, mano... Dá uma procurada
  10. qual a versão do seu TFS? Você instalou as storages na Lib?
  11. Tentei kk, não manjo de 0.4 kk local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.9, 0, -0.9, 0) setCombatCondition(combat, condition) function onCastSpell(cid, var) setPlayerStorageValue(cid, 12019, 1) addEvent(function(id) if not isPlayer(id) then return end setPlayerStorageValue(id, 12019, -1) end, 500, cid) return doCombat(cid, combat, var) end
  12. post your script, man... And what is version of distro?
  13. tu quer um script do zero? Ou não sabe instalar o que já tem no Tibiaking?
  14. Você não tem o modal WIndow instalando em seu sistema...
  15. isso é na source, mano
  16. poste o script, por favor
  17. local storage = 502154 function onSay(player, words, param) if player:getExhaustion(storage) > 0 then player:sendCancelMessage(RETURNVALUE_YOUAREEXHAUSTED) return false end if player:stopLiveCast(param) then player:setExhaustion(storage, 5) player:sendTextMessage(MESSAGE_INFO_DESCR, "You have stopped casting your gameplay.") else player:sendCancelMessage("You're not casting your gameplay.") end return false end
  18. Cara, no github do Malucooo há esses sistemas, dê uma procurada lá
  19. function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getSkull() == SKULL_RED then player:getPosition():sendMagicEffect(CONST_ME_POFF) player:sendCancelMessage('Você esta red skull.') return true end player:teleportTo(player:getTown():getTemplePosition()) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) return true end
  20. Use o OT Item Editor para colocar as propriedades correta dos itens !
  21. Mande seu login.php aqui, por favor

Informação Importante

Confirmação de Termo