Ir para conteúdo

tibira

Membro
  • Registro em

  • Última visita

  1. ah sim, eu tb estou fazendo isso...mas n sabia que as dos players funcionavam ...vlw
  2. tibira respondeu ao post em um tópico de NoNaMexD em Mapas de Tibia
    ah sim eu sai excluindo tb e deu certo...e outra ,tem items abaixo do mapa que causam dbug...removi eles tb
  3. peckface reagiu a uma resposta no tópico: Monstros e Items 10.94 10.98 10.99
  4. opa fera, eu tenho alguns aqui tb e vou compartilhar com a galera, só tenho uma duvida, vc teria uma lista com script de magias dos monstros?
  5. Sera que alguem me ajuda a converter essa script abaixo, pelo que vi nao tem aqui no forum ela: /*/data/npc create Testserver Assistant.xml and add Code: <?xml version="1.0" encoding="UTF-8"?> <npc name="Testserver Assistant" script="testserver_assistant.lua" walkinterval="4000" floorchange="0"> <health now="100" max="100"/> <look type="73" /> <parameters> <parameter key="message_greet" value="Hey |PLAYERNAME|. I'm Testserver Assistant and can give {money} and {experience} which will be useful for testing on Exodum server."/> <parameter key="message_farewell" value="Good bye!"/> <parameter key="message_walkaway" value="Good bye!" /> </parameters> </npc> /*/data/npc/scripts create testserver_assistant.lua and add Code: --EXODUM OTS --BY SZAFI (Old Sessam) --http://tibia.net.pl/members/156613-Old-Sessam --http://otland.net/members/szafi.32524/ --skype: sessam5 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 --DAWANIE 10 CRYSTAL COINS local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, "money") then selfSay("Do you want 10 crystal coins?", cid) talkState[talkUser] = 1 elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then selfSay("Here you are.", cid) doPlayerAddItem(cid, 2160, 10) talkState[talkUser] = 0 if(not npcHandler:isFocused(cid)) then return false end --DAWANIE 254237300 EXPA elseif msgcontains(msg, "experience") then selfSay("Do you want experience?", cid) talkState[talkUser] = 2 elseif msgcontains(msg, "yes") and talkState[talkUser] == 2 and getPlayerStorageValue(cid, 15211) == 1 then selfSay("Sorry. Experience I can add only one time per character.", cid) elseif getPlayerStorageValue(cid, 15211) == -1 then selfSay("Here you are.", cid) doPlayerAddExp(cid, 254237300) doCreatureSetStorage(cid, 15211, 1) talkState[talkUser] = 0 if(not npcHandler:isFocused(cid)) then return false end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  6. tibira respondeu ao post em um tópico de NoNaMexD em Mapas de Tibia
    descobriram o item que esta dando dbug perto da escada do dp?
  7. tem algum problema no seu movements , pode ser algum item que ao ser usado causa esse erro e a distro fecha, vou procurar aqui pois tenho um serv tfs 1.2 se encontrar te falo...
  8. Grande Bruno Minervino, muito bom esse seu trabalho, só gostaria de uma informação , qual map editor vc esta usando? pois quando eu abro no meu map editor e salvo alguns npcs e monstro somen ou sao trocados por npc.
  9. alguem sabe oq pode ser esse erro? Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/spike task/drillworm.lua:onKill data/creaturescripts/scripts/spike task/drillworm.lua:12: attempt to index field 'spikeTask' (a nil value) stack traceback: [C]: in function '__index' data/creaturescripts/scripts/spike task/drillworm.lua:12: in function
  10. tibira respondeu ao post em um tópico de TonyHalk em Tutoriais sobre Scripting
    ate ai tudo bem, mas e para aumentar somente o ataque dessa wand?
  11. function onUse(cid, item, fromPosition, target, toPosition, isHotkey) if target.itemid == 22636 then doRemoveItem(item.uid) Game.createMonster("Zavarash", {x = 33567, y = 32420, z = 12}, false, true) end doTeleportThing(cid, {x = 33568, y = 32414, z = 12}, false) end return true
  12. tente isso: local berserker = Condition(CONDITION_ATTRIBUTES) berserker:setParameter(CONDITION_PARAM_TICKS, 10 * 60 * 1000) berserker:setParameter(CONDITION_PARAM_SKILL_MELEE, 5) berserker:setParameter(CONDITION_PARAM_SKILL_SHIELD, -10) local mastermind = Condition(CONDITION_ATTRIBUTES) mastermind:setParameter(CONDITION_PARAM_TICKS, 10 * 60 * 1000) mastermind:setParameter(CONDITION_PARAM_STAT_MAGICPOINTS, 3) mastermind:setParameter(CONDITION_PARAM_SKILL_SHIELD, -10) local bullseye = Condition(CONDITION_ATTRIBUTES) bullseye:setParameter(CONDITION_PARAM_TICKS, 30 * 60 * 1000) bullseye:setParameter(CONDITION_PARAM_SKILL_DISTANCE, 5) bullseye:setParameter(CONDITION_PARAM_SKILL_SHIELD, -10) local config = { [7439] = berserker, [7440] = mastermind, [7443] = bullseye } function onUse(cid, item, fromPosition, itemEx, toPosition) local useItem = config[item.itemid] if not useItem then return true end local player = Player(cid) local vocations = {1, 2, 5, 6} if item.itemid == 7440 then if not isInArray(vocations, player:getVocation():getBase():getId()) then doPlayerSendTextMessage(cid, 18 ,'Only sorcerers and druids may drink this fluid.', TALKTYPE_MONSTER_SAY) return true end end local cStorage = player:getStorageValue(Storage.Achievements.PotionAddict) if cStorage < 100000 then player:setStorageValue(Storage.Achievements.PotionAddict, math.max(1, cStorage) + 1) elseif cStorage == 100000 then player:addAchievement('Potion Addict') player:setStorageValue(Storage.Achievements.PotionAddict, 100001) end player:addCondition(useItem) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED) Item(item.uid):remove(1) return true end
  13. ta dando esse erro: Lua Script Error: [spell Interface] data/spells/scripts/support/paralyze rune.lua luaSetConditionParam(). Condition not found stack traceback: [C]: in function 'setConditionParam' data/spells/scripts/support/paralyze rune.lua:6: in main chunk
  14. uso tfs 1.0

Informação Importante

Confirmação de Termo