Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: Landira on September 16, 2012, 06:16:00 pm
-
Hello Guys,
Does somebody know, how i can create a Teleportobject via GUID ?
I knoe the way to create a simple Portal Object via Smart Scripts. Witz thr tool Truice fpr TinityCore or Quice for Mangos its a very simple way. But i know, when im create a teleportobject it´s possible to use this ONE Object for thousend of Teleporter via the spawned GUID of the Object. But i don´t find out the way to do it.
In Truice under Smart_AI_scripts there ist the option "Use entry ID OR GUID" But when i use the GUID it doesn´t Work :(
The same thing... how can i activate a Object via an Buttonobject over the GUID?
-
Just duplicate the gameobject in the database and use it seperately. Considerably easier than scripting something to check for GUID and teleport to somewhere else accordingly.
-
I did portals with arc just by ading the needed stuff to the dbcs. No script was needed. Have to try if this works also in Trinity.
-
I found the script way is the easiest way to do and Teleport. (I create and Teleport object in 0,5 - 1 Minute)
with the GUID version i need only ONE object. When i duplicate the Teleport object (thats what i´m doing the last weeks) it´s horrible with all these 50 Object where i can use one when the script with the GUID works. The best this is, with the GUID version i don´t need to restart the Server all the Time. I´m only adding my Teleport object making a Smart AI script and reload the Smartscripts ingame thats all.
Seems to be the same way to activate thins with an switch or something.
@Steff plz can you take my thread out of the Tutorials, I post it wrong, sorry for that :)
-
Did you put the GUID as negative value into the entryOrGUID field in the database?
-
Did you put the GUID as negative value into the entryOrGUID field in the database?
negative? no, for GUID i must put an - in front of the id?
-
Hello. Yes, you have to, see quote from the wiki:
entryorguid
EntryOrGuid > 0: entry of the creature / game object / etc.
EntryOrGuid < 0: guid of the creature / game object / etc.
-
ok when the GUID is 9999 i have to insert -9999
-
ok i can insert an Teleportscript wie the - fpr the GUiD but the Teleport don´t work.
I insert the same script as the other working Teleportscripts.
Same script with the ID works fine.
Must i edit the Object himself on an other way?
-
Seams to be not this easy ;)
-
It´s very easy but somewhere must be an Entry failure...
The same object and the script when I´m using the ID works perfectly. I´m right clicking the Object and I teleport.
When I do it with the GUID it does nothing when I´m right click on the object.
I wish to do it with the GUID because I can use ONE Object for many many Portals like the Translocation Orb of Silvermoon.
Is it possible i have to change something on the Object himself when I wish to do this with GUID IDs?
-
After a long time I think I found the problem.
The Server Error log say:
SmartAIMgr::LoadSmartAIFromDB: Creature guid (228821) does not exist, skipped loading.
SmartAIMgr::LoadSmartAIFromDB: Creature guid (228795) does not exist, skipped loading.
I think the Server is dearching fpr CREATURE guid´s not for OBEJCTS.
But the source_type in the Smart script section is on "1" that means he must use the GUID for GAMEOBJECTS.
The source_type for Creature is "0" .
It is correct set on 1 and I don´t know why the Server already searching for CREATURE GUID -.-
It´s a TrinityCore
-
There could be a -1 offset, have you tried experimenting with it by putting the source_type as 2 (in other words 1 with a -1 offset). Probably not the solution but certainly an option to try.