Giter VIP home page Giter VIP logo

Comments (9)

Nyr97 avatar Nyr97 commented on September 22, 2024

It would require implementing 4 additional columns just for this feature and as far as I am aware, that's not a common thing to do with very specific features.

from trinitycore.

Krutok avatar Krutok commented on September 22, 2024

It would require implementing 4 additional columns just for this feature and as far as I am aware, that's not a common thing to do with very specific features.

Yes, but this function is needed to specifically display objects in the game. Because I don't want to incorporate everything into my maps, as they should only be spawned specifically for events or quests.

from trinitycore.

Krutok avatar Krutok commented on September 22, 2024

Furthermore, you cannot permanently install m2 in WMOs, so it only works as a GameObject and therefore this function is very helpful.

from trinitycore.

funjoker avatar funjoker commented on September 22, 2024

https://trinitycore.info/database/335/world/smart_scripts

You can enable a spawn position from gameobject table with Action 70 (SMART_ACTION_ENABLE_TEMP_GOBJ)
These gameobjects can have rotation and static position.

It's the -spawnid gameobjects :)

from trinitycore.

funjoker avatar funjoker commented on September 22, 2024

tho you can't have them multiple times <.<

from trinitycore.

Krutok avatar Krutok commented on September 22, 2024

https://trinitycore.info/database/335/world/smart_scripts

You can enable a spawn position from gameobject table with Action 70 (SMART_ACTION_ENABLE_TEMP_GOBJ) These gameobjects can have rotation and static position.

It's the -spawnid gameobjects :)

@funjoker

How exactly is that supposed to work? If I understand correctly, you have to let the game object spawn in the place where you want it, because with the method I can only specify the game object + the GUID, which means the object must already be spawned on the map.

from trinitycore.

meji46 avatar meji46 commented on September 22, 2024
-- Spawn (negative spawntimesecs)
-- Using a negative value will result in the object starting out by being "despawned" until a script will spawn it
-- It will then despawn after the amount of time specified here has passed
SELECT * FROM `gameobject` WHERE `id`=190736 AND `guid`=16964;

-- SAI (creature respawns the GO)
SELECT * FROM `smart_scripts` WHERE `action_type`=70 AND `target_param2`=190736;

from trinitycore.

Krutok avatar Krutok commented on September 22, 2024

Yes, thank you, that will help me for the event I have planned.

from trinitycore.

Krutok avatar Krutok commented on September 22, 2024

@meji46

The function is good, but unfortunately it is not useful for this event, because I want to decide for myself when it despawns and spawns again. So I have now used the Spawn Groups function and it works the way I want it to.

from trinitycore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.