Postado Fevereiro 21, 2021 4 anos Existe alguma chance de o script funcionar? Posso tentar todas as manipulações (ainda que todos os scripts convertidos em revscripts funcionem) mas este ... não funciona, não consigo fazer funcionar, eof linha 34, chunck principal linha 13, então bom l ' recarregar o erro da linha 47 (mas este desaparecerá se os outros 2 forem corrigidos) local config = { portalId = 27721, -- change to portal item id portalTime = 30, -- portal duration in seconds scrollId = 14324, -- change to scroll item id effect = CONST_ME_POFF -- effect id or CONST that appears at the end of time } local function removePortal(portal) portal:remove() portal:getPosition():sendMagicEffect(config.effect) end function portalScroll.onUse(player, item, fromPosition, target, toPosition, isHotkey) if(item:getId()==config.scrollId) then portal = Game.createItem(config.portalId, 1, player:getPosition()) if(player:getParty()) then portal:setCustomAttribute("party", player:getParty()) else portal:setCustomAttribute("owner", player:getName()) end addEvent(removePortal, config.portalTime * 1000, portal) item:remove() else if(not player:isPzLocked() and not player:getCondition(CONDITION_INFIGHT, CONDITIONID_DEFAULT)) then if(item:getCustomAttribute("party")) then if(player:getParty()==item:getCustomAttribute("party")) then player:teleportTo(player:getTown():getTemplePosition(), true) else player:sendCancelMessage("You do not participate on the creator's portal.") end elseif(item:getCustomAttribute("name") and player:getName() == item:getCustomAttribute("name")) then player:teleportTo(player:getTown():getTemplePosition(), true) else player:sendCancelMessage("You can't use this you are not the owner.") end else player:sendCancelMessage("You can't use this when you're in a fight.") end end return true end portalScroll:id(14324) PortalScroll:register()
Postado Abril 29, 2021 4 anos Tags XML: <action itemid="PORTALID HERE" script="townportalsystem.lua"/> <action itemid="SCROLLID HERE" script="townportalsystem.lua"/> Son 2 Actions, Primeiro falta: local portalScroll = Action() Segundo 2 actionID = portalScroll:id(14324, ID 2 )
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.