Ir para conteúdo

dervin13

Membro
  • Registro em

  • Última visita

  1. .Qual servidor ou website você utiliza como base? tfs 1.3 Qual o motivo deste tópico? Quando em funcionamento o auto loot não pega os items dentro da bag local function scanContainer(cid, position) local player = Player(cid) if not player then return end local corpse = Tile(position):getTopDownItem() if not corpse or not corpse:isContainer() then return end if corpse:getType():isCorpse() and corpse:getAttribute(ITEM_ATTRIBUTE_CORPSEOWNER) == cid then for a = corpse:getSize() - 1, 0, -1 do local containerItem = corpse:getItem(a) if containerItem then for b = AUTOLOOT_STORAGE_START, AUTOLOOT_STORAGE_END do if player:getStorageValue(b) == containerItem:getId() then containerItem:moveTo(player) end end end end end end function onKill(player, target) if not target:isMonster() then return true end addEvent(scanContainer, 100, player:getId(), target:getPosition()) return true end obrigado
  2. dervin13 reagiu a uma resposta no tópico: PZ locked magic wall tfs 1.3
  3. local combat = Combat() combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL) function onCastSpell(creature, variant, isHotkey) return combat:execute(creature, variant) end
  4. .Qual servidor ou website você utiliza como base? tfs 1.X Qual o motivo deste tópico? Gostaria de saber se é possível e como fazer para que nesse novo tfs o player pegue PZ LOCKED (o battle vermelho) ao usar magic wall rune, obrigado.
  5. Então não sei o que pode ter sido, pois infelizmente não funcionou
  6. Não funcionou, no error aparece isso aqui Query: SELECT `accounts`.`flag`, `players`.`name`, `players`.`vocation`, `players`.`promotion`, `players`.`level`, `players`.`skull`, `players`.`looktype`, `players`.`lookaddons`, `players`.`lookhead`, `players`.`lookbody`, `players`.`looklegs`, `players`.`lookfeet` FROM `accounts`, `players` WHERE `players`.`world_id` = '0' AND `players`.`online` = '1' AND `accounts`.`id` = `players`.`account_id` ORDER BY `name` SQLSTATE: 00000 Driver code: Error message:
  7. Olá, alguem teria um script de alavanca que precisa de 1 player de cada vocação e acima de certo level para ser levado para um lugar??
  8. Olá, gostaria de saber se é possível criar uma arena pvp onde fosse atribuido a todos os players que entrassem nessa arena a mesma quantidade de life e mana??
  9. Por acaso voce teria um script pronto? ja tentei fazer e nao consegui
  10. Alguem saber como fazer uma door que apenas premium passa?
  11. No meu script nessa parte não está reconhecendo pq é uma function 1.2 if (Monster(target) ~= nil) then local mt = MonsterType(target:getName()) alguem sabe como transformar numa function 1.0? vlww
  12. Alguem sabe me ajudar? Here's my error Lua Script Error: [Action Interface] data/actions/scripts/reward_chest.lua:OnUse data/actions/scripts/reward_chest.lua:10: attempt to call method 'getAttribute' (a nil value) stack traceback: [C]: in function 'getAttribute' data/actions/scripts/reward_chest.lua:10: in function <data/actions/scri pts/reward_chest.lua:1> Here's my script function onUse(player, item, fromPosition, target, toPosition, isHotkey) -- Reward Chest if item.itemid == 21584 then if player:getExhaustion(REWARD_CHEST.STORAGE) > 0 then return player:sendCancelMessage('You need to wait ' .. string.diff(player:getStorageValue(REWARD_CHEST.STORAGE) - os.time()) .. ' before using this chest again.') end player:updateRewardChest() -- Boss Corpse elseif item.actionid == 21584 then local reward = REWARD_CHEST.LOOT[tonumber(item:getAttribute('text'))][player:cid()] if reward then local rewardBag = Container(doCreateItemEx(REWARD_CHEST.CONTAINER, 1)) addContainerItems(rewardBag, reward) if player:getCapacity() < rewardBag:getCapacity() then return player:sendCancelMessage(RETURNVALUE_NOTENOUGHCAPACITY) end if player:addItemEx(rewardBag, false) == RETURNVALUE_NOERROR then REWARD_CHEST.LOOT[tonumber(targetitem:getAttribute('text'))][player:getGuid()] = nil player:sendCancelMessage('You have picked up a reward container.') else player:sendCancelMessage(RETURNVALUE_NOTENOUGHROOM) return true end end end return false end thanks

Informação Importante

Confirmação de Termo