[TrinityCore] Portalevent zum Download

07/12/2013 12:36 °"Crazy"°#1
Hallo Community,

Hier habe noch ein etwas ältere Event, perfekt für Funserver oder Abwechslung auf Levelrealms (Blizzlike / Highrate / Midrate).

Was macht das?

Einbatchen, Portale spawnen, gut ist. Die Spieler sollten durch 3 Portale hüpfen, wobei am Ende der Questbeender stand. Es war leicht verwirrend, da auf jeder Plattform (abgegrenzt durch objekte) nur Kleinigkeiten verändert waren.


Code:
SET @entry := 20000; -- Game object entry
SET @portal := 'Portal der Mächte'; -- Tooltip to show when hoving over portal
SET @display := 1327; -- Display id to use for the portal
SET @map := '1';

-- Description in SAI
SET @portal1_text := 'Portal 1';
SET @portal2_text := 'Portal 2';
SET @portal3_text := 'Portal 3';
SET @portal4_text := 'Portal 4';
SET @portal5_text := 'Portal 5';
SET @portal6_text := 'Portal 6';
SET @portal7_text := 'Portal 7';
SET @portal8_text := 'Portal 8';
SET @portal9_text := 'Portal 9';
SET @portal10_text := 'Portal 10';
SET @portal11_text := 'Portal 11';

DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@entry, @entry+1, @entry+2, @entry+3, @entry+4, @entry+5, @entry+6, @entry+7, @entry+8, @entry+9, @entry+10);


REPLACE INTO `gameobject_template` VALUES 
(@entry,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+1,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+2,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+3,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+4,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+5,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+6,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+7,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+8,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+9,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+10,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1),
(@entry+11,10,1327,@portal,'','','',0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'SmartGameObjectAI','',1);

REPLACE INTO `smart_scripts` VALUES
(@entry,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8305.52','-733.61','11','4.51367',CONCAT(@portal1_text, ' - On click - Teleport')),
(@entry+1,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8310.37','-702.943','11','4.51367',CONCAT(@portal2_text, ' - On click - Teleport')),
(@entry+2,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8316.6','-770.614','10','4.51759',CONCAT(@portal3_text, ' - On click - Teleport')),
(@entry+3,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8323.26','-795.405','11','4.50',CONCAT(@portal4_text, ' - On click - Teleport')),
(@entry+4,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8331.21','-822.171','10','4.50',CONCAT(@portal5_text, ' - On click - Teleport')),
(@entry+5,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8337.44','-846.326','11','4.50',CONCAT(@portal6_text, ' - On click - Teleport')),
(@entry+6,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8341.58','-871.053','11','4.63',CONCAT(@portal7_text, ' - On click - Teleport')),
(@entry+7,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8345.38','-899.134','11','4.65',CONCAT(@portal8_text, ' - On click - Teleport')),
(@entry+8,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8339.59','-924.124','11','4.57',CONCAT(@portal9_text, ' - On click - Teleport')),
(@entry+9,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8361.12','-921.772','10','4.63',CONCAT(@portal10_text, ' - On click - Teleport')),
(@entry+10,1,0,0,64,0,100,0,0,0,0,0,62,@map,0,0,0,0,0,0,0,0,0,'-8362.66','-945.768','10','4.58',CONCAT(@portal11_text, ' - On click - Teleport'));

[Only registered and activated users can see links. Click Here To Register...]


Viel Spaß damit.
Solltet Ihr Anregungen haben, was ich als nächstes machen soll, schreibt mir einfach eine PN.


Bitte beachtet, dass ich der Ersteller bin und gebt, wenn Ihr das Script weiter verbreitet, immer diese Quelle an bzw. verlinkt mein Profil von e*pvp.
Ausnahmen nur schriftlich via PN - System!