Portal to Paw'don Village

I’m trying to make portal to Pandaria but it isn’t working.

I added this gameobject:

gameobject (guid, id, map, zoneId, areaId, spawnMask, PhaseId, PhaseGroup, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state, VerifiedBuild) VALUES (9000000, 215457, 0, 0, 0, 1, 0, 0, -8194.48, 528.113, 117.29, 0, 0, 0, 0, 0, 120, 255, 1, 0);

Unmodified portal data from database:

gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, 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, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, unkInt32, AIName, ScriptName, VerifiedBuild) VALUES (215457, 22, 12658, ‘Portal to Paw'don Village’, ‘’, ‘’, ‘’, 0, 0, 1, 130703, 0, 0, 1, 0, 924, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ‘’, ‘’, 20182);

Short video about what happens.

you have to use a smartscript to teleport a player ^^

https://trinitycore.info/display/tc/smart_scripts

The query could look like tis one

SET @entry := 215457; SET @map := 1; SET @posX := 123.0; SET @posY := 123.0; SET @posZ := 123.0; SET @orientation := 1.0; SET @commentText := "'Portal to Paw\'don Village"; 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,@posX,@posy,@posz,@orientation,@commentText);

Thank you :slight_smile:

why use smartscript for a basic teleport spell?

the gobject has spellid [COLOR= rgb(39, 42, 52)]130703, if you lick it, the spell triggers a selfcast on the player with spellid 130702
so you simply have to add a spell_target_position for spellid 130702