Ir para conteúdo
  • Cadastre-se

(Resolvido)Town portal like WOW


Ir para solução Resolvido por Nazo,

Posts Recomendados

Hello ppl. Hope you can help me with this.
TFS 1.3

Im looking for a script that can do this.

1. Teleport scroll clickeable and stackeable that summons a portal
2. All party members can click on it , else you r not in this party mssg
3. Y;x,z equal to the owners residence
4. Portal consumes after x time
5. Owner consume 1 of his item charges

Hope someone can help with this. <3

PORTAL.jpg

Link para o post
Compartilhar em outros sites
  • Respostas 8
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hi, 'meu chapa' :rofl: test this, @noktuno:   -- Town Portal Scroll System based in Dota 2 -- by Nazo (tibiaking.com) local config = { portalId = 1231, -- change to portal item id portalTime = 30, -- portal duration in seconds scrollId = 1232, -- change to scroll item id effect = CONST_ME_POFF -- effect id or CONST that appears at the end of time } local function removePortal(portal, position) portal:remove() Position(position):sendMagicEffect(config.effect) end function onUse(

Oh, i gonna try, wait, i edit here and explain for u   edit, @noktuno   TAGS in actions.xml <action itemid="PORTALID HERE" script="townportalsystem.lua" /> <action itemid="SCROLLID HERE" script="townportalsystem.lua"/>   Archive townportalsystem.lua in actions/scripts/ -- Town Portal Scroll System based in Dota 2 -- by Nazo (tibiaking.com) local config = { portalId = 1231, -- change to portal item id portalTime = 30, -- portal duration in seco

I love u dude im trying this at night

Posted Images

  • Solução

Hi, 'meu chapa' :rofl: test this, @noktuno:
 

-- Town Portal Scroll System based in Dota 2
-- by Nazo (tibiaking.com)

local config = {
	portalId = 1231,		-- change to portal item id
	portalTime = 30,		-- portal duration in seconds
	scrollId = 1232,		-- change to scroll item id
	effect = CONST_ME_POFF	-- effect id or CONST that appears at the end of time
}

local function removePortal(portal, position)
	portal:remove()
	Position(position):sendMagicEffect(config.effect)
end

function onUse(player, item, fromPosition, target, toPosition, isHotkey)
	if(item:getId()==config.scrollId) then
		portal = Item(Game.createItem(config.portalId, 1, player:getPosition()))
		portal:setCustomAttribute("party", player:getParty())
		addEvent(removePortal, config.portalTime * 1000, portal, player:getPosition())
		item:remove()
	else
		if(player:getParty()==item:getCustomAttribute("party")) then
			player:teleportTo(player:getTown():getTemplePosition(), true)
		else
			player:popupFYI("You do not participate in the portal creator's party.")
		end
	end
	return true
end

 

Programador PHP, Lua, Java, database administrator.

 

"Nada é verdade, tudo é permitido."

Requiescat in pace.

Link para o post
Compartilhar em outros sites

@noktunoI know this thank you man! If this works 100%, choose best anwser in upper left corner =)

Editado por Nazo (veja o histórico de edições)

Programador PHP, Lua, Java, database administrator.

 

"Nada é verdade, tudo é permitido."

Requiescat in pace.

Link para o post
Compartilhar em outros sites

@NazoWhere do i need to place this file

And is it possible to add COMBAT / PK restriction?

Editado por noktuno (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96844
    Tópicos
    519600
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo