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!
Home
Forum
Modcraft - The community dedicated to quality WoW modding!
Forum
Wrath of the Lich King Modding
Serverside Modding
[QUESTION] [Trinity] Spawn a house by an item?
Menu
Discord
Tutorials
Links
WowDev wiki
Print
Pages: [
1
]
Author
Topic: [QUESTION] [Trinity] Spawn a house by an item? (Read 4514 times)
Nic
Registred Member
Polygonshifter
Posts: 52
[QUESTION] [Trinity] Spawn a house by an item?
«
on:
November 19, 2012, 10:44:39 pm »
Hey everyone
i am racking my head about a little problem... I want to spawn a gameobject by an item, but it does not work very well.
I take that spell (
http://old.wowhead.com/spell=42753
) which spawn a gameobject for a short time. I put that spell into a new item and edit the spell trigger object (Entry: 186472) from this spell. I rename the object, change the display id and set the flag on 36 (Cannot interact & No despawn).
Ingame i add me the item and click on it. I can chose the location where the object spawn. After 4sec spell cast the object spawns (Yay!), but after a server restart the object is despawn...
i think the spell dont add the object into the "gameobject" table.
Does anyone have an idea to solve this problem?
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Ascathos
Moderators
Creator of Worlds
Posts: 1129
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #1 on:
November 20, 2012, 01:31:08 pm »
Pretty sure you'd have to do that either in a hacky way or not at all.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Nic
Registred Member
Polygonshifter
Posts: 52
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #2 on:
November 20, 2012, 03:52:31 pm »
That's what I thought... i have no idea for a "hacky" way.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Bartons
Registred Member
Polygonshifter
Posts: 65
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #3 on:
November 21, 2012, 03:32:54 am »
What about this ...
When they use the item, it grants them permissions and the ability to spawn game objects for a short period of time. Then, when they use the item, have the item execute a server side script :".go spawn [ID] 1" to spawn the game object in the world.
Just a suggestion.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
schlumpf
Administrator
Creator of Worlds
Posts: 2967
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #4 on:
November 21, 2012, 08:54:41 am »
Hacking a spell to temporarily grant permissions would be a horrible idea and even worse user experience.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Bartons
Registred Member
Polygonshifter
Posts: 65
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #5 on:
November 21, 2012, 10:59:08 am »
It would only grant permissions for a split second for the house spawn. It would then revoke them.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
schlumpf
Administrator
Creator of Worlds
Posts: 2967
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #6 on:
November 21, 2012, 11:02:24 am »
If the server is executing the command automatically, why would it grant permissions to execute any command in the first place instead of just executing it?
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Nic
Registred Member
Polygonshifter
Posts: 52
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #7 on:
November 21, 2012, 12:10:11 pm »
But how i write the spell function in the source code of the Trinity? I found no spell functions in the source code, so i think Trinity managed the whole spells by DBC's.
Or it is possible to write a function in the source code and connect it directly to an item without a spell?
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
schlumpf
Administrator
Creator of Worlds
Posts: 2967
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #8 on:
November 21, 2012, 01:34:48 pm »
There are a lot of non-dbc spells in Trinity.
https://github.com/TrinityCore/TrinityC ... pts/Spells
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Nic
Registred Member
Polygonshifter
Posts: 52
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #9 on:
November 21, 2012, 02:27:38 pm »
Oh.. i think the spell_item.cpp is the source for item spells. I think, if i copy the ".gobject add" code from the command cpp into the spell_item.cpp then it works.
Has anyone some hints for me for this problem?
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Nic
Registred Member
Polygonshifter
Posts: 52
Re: [QUESTION] [Trinity] Spawn a house by an item?
«
Reply #10 on:
November 25, 2012, 03:11:06 pm »
/Problem solved
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Print
Pages: [
1
]
Modcraft - The community dedicated to quality WoW modding!
Forum
Wrath of the Lich King Modding
Serverside Modding
[QUESTION] [Trinity] Spawn a house by an item?