This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Teleport objects via GUID  (Read 4656 times)

Landira

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 68
    • View Profile
Teleport objects via GUID
« 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Crumpet

  • Contributors
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: Teleport objects via GUID
« Reply #1 on: September 16, 2012, 06:57:09 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Teleport objects via GUID
« Reply #2 on: September 16, 2012, 09:44:30 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Landira

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 68
    • View Profile
Re: Teleport objects via GUID
« Reply #3 on: September 16, 2012, 11:15:36 pm »
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 :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Cromon

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 56
    • View Profile
Re: Teleport objects via GUID
« Reply #4 on: September 17, 2012, 11:31:23 am »
Did you put the GUID as negative value into the entryOrGUID field in the database?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Landira

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 68
    • View Profile
Re: Teleport objects via GUID
« Reply #5 on: September 17, 2012, 12:35:05 pm »
Quote from: "Cromon"
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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Cromon

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 56
    • View Profile
Re: Teleport objects via GUID
« Reply #6 on: September 17, 2012, 01:28:40 pm »
Hello. Yes, you have to, see quote from the wiki:
Quote
entryorguid
EntryOrGuid > 0: entry of the creature / game object / etc.
EntryOrGuid < 0: guid of the creature / game object / etc.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Landira

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 68
    • View Profile
Re: Teleport objects via GUID
« Reply #7 on: September 17, 2012, 11:18:40 pm »
ok when the GUID is  9999   i have to insert   -9999
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Landira

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 68
    • View Profile
Re: Teleport objects via GUID
« Reply #8 on: September 17, 2012, 11:49:59 pm »
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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Teleport objects via GUID
« Reply #9 on: September 18, 2012, 06:49:52 am »
Seams to be not this easy ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Landira

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 68
    • View Profile
Re: Teleport objects via GUID
« Reply #10 on: September 18, 2012, 10:20:10 am »
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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Landira

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 68
    • View Profile
Re: Teleport objects via GUID
« Reply #11 on: November 14, 2012, 09:37:38 pm »
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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: Teleport objects via GUID
« Reply #12 on: December 24, 2012, 11:42:29 am »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »