PDA

View Full Version : [Release]ICC Teleporter, creature + script



Wise
24-03-10, 05:44 AM
Here is a screenshot:

http://i41.tinypic.com/zoamvn.jpg


All credits go to Austinsims

Here are the downloads:
Scourge Portal NPC (http://filebeam.com/445b3908430c87041700fd55a4adc558)

--[[
Script made by austinsims
]]

function portalGossipOnTalk(pUnit, Event, player)
pUnit:GossipCreateMenu(100, player, 0)
pUnit:GossipMenuAddItem(0, "Teleport to Light's Hammer", 1, 0)
pUnit:GossipMenuAddItem(0, "Teleport to Oratory of The Damned", 2, 0)
pUnit:GossipMenuAddItem(0, "Teleport to Rampart of Skulls", 3, 0)
pUnit:GossipMenuAddItem(0, "Teleport to Deathbringer's Rise", 4, 0)
pUnit:GossipMenuAddItem(0, "Teleport to The Plagueworks", 5, 0)
pUnit:GossipMenuAddItem(0, "Teleport to The Crimson Halls", 6, 0)
pUnit:GossipMenuAddItem(0, "Teleport to The Frostwing Halls", 7, 0)
pUnit:GossipMenuAddItem(0, "Teleport to The Frost Queen's Lair", 8, 0)
pUnit:GossipMenuAddItem(0, "Teleport to The Frozen Throne", 9, 0)
pUnit:GossipSendMenu(player)
end

function portalGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
if (intid == 1) then
player:Teleport(631, -17.856115, 2211.640137, 30.115812)
player:GossipComplete()
end

if (intid == 2) then
player:Teleport(631, -503.632599, 2211.219971, 62.823246)
player:GossipComplete()
end

if (intid == 3) then
player:Teleport(631, -615.098267, 2211.509766, 199.973083)
player:GossipComplete()
end

if (intid == 4) then
player:Teleport(631, -549.151001, 2211.463967, 539.290222)
player:GossipComplete()
end

if (intid == 5) then
player:Teleport(631, 4356.780273, 2863.636230, 349.337982)
player:GossipComplete()
end

if (intid == 6) then
player:Teleport(631, 4453.248535, 2769.325684, 349.347473)
player:GossipComplete()
end

if (intid == 7) then
player:Teleport(631, 4356.853516, 2674.143311, 349.340118)
player:GossipComplete()
end

if (intid == 8) then
player:Teleport(631, 4356.527344, 2402.710205, 220.462723)
player:GossipComplete()
end

if (intid == 9) then
player:Teleport(631, -782.4, 2604.1, 1784.6)
player:GossipComplete()
end
end

RegisterUnitGossipEvent(99098, 1, "portalGossipOnTalk")
RegisterUnitGossipEvent(99098, 2, "portalGossipOnSelect")

PaikProductions
24-03-10, 06:57 AM
You should find the gameobject of the real teleport, that would be awesome, but this is nice too!

ignite
01-06-10, 10:40 AM
this is for trinity core too?

Dimman
01-06-10, 10:47 AM
this is for trinity core too?
If you are working with TC you should know that TC doesent support lua.

zwroblewski
22-08-10, 11:01 PM
Yea lol :P nice!