Jump to content

Recommended Posts

Posted

I made custom portal but it wont work. Its " Locked ". I set data0 to teleport spell ID ( 300000 ) rest data is 0...But portal is still locked...Why? I tried to solve it with google...But nothing. Please help!

Posted

U mean this?

95738424.png

70808481.png

But how object template will know about object_script? I have to add object_cript ID somwhere in object_template?

Now when i click on portal - nothing happens.

Posted

gameobject_template:

Set type = 1

(not 22)

Faction = 0

But how object template will know about object_script? I have to add object_cript ID somwhere in object_template?

gameobject_scripts:

ID = GUID of the gameobject

Sql:

DELETE FROM `gameobject_template` WHERE `gameobject_template`.`entry` = 300000;

DELETE FROM `gameobject` WHERE `gameobject`.`GUID` = 200100;

DELETE FROM `gameobject_scripts` WHERE `gameobject_scripts`.`ID` = 200100;

INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `faction`, `flags`, `size`, `data0`, `data1`, `data2`, `data3`, `data4`, `data5`, `data6`, `data7`, `data8`, `data9`, `data10`, `data11`, `data12`, `data13`, `data14`, `data15`, `data16`, `data17`, `data18`, `data19`, `data20`, `data21`, `data22`, `data23`, `mingold`, `maxgold`, `ScriptName`) VALUES
('300000', '1', '4397', 'Portal to Azshara Crater', '', '', '0', '0', '1', '0', '0', '196608', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '');

INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
(200100, 300000, 1, 1, 16226.2, 16257, 13.2022, 1.65007, 0, 0, 0.734572, 0.678531, 25, 100, 0);

INSERT INTO `gameobject_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `comments`) VALUES
('200100', '0', '6', '37', '0', '0', '0', '0', '0', '0', '0', '0', '1026.02', '286.68', '332.55', '0', 'Teleport to Azshara Crater');

For the exemple, the portal is located to gmisland

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use