How to add custom teleport locations?

Go down

How to add custom teleport locations?

Post by Dandi on Fri Mar 29, 2013 11:13 pm

Hey people. First of all, I ain't that good with SQL and stuff, so if you got an asnwer, please make it as detailed as possible.
Core: TrinityCore
Problem: I have a new location, called 'Chill Zone', and I don't know how to modify the teleporter, and add there the required stuff. I have the cords, but I don't know what to do next. I've read some of the topic here, and I did not understand what exactly I need to change.
Error: No error since no action has been taken.
Changes you have done: /
Code: Same as the starting's SQL code.
Pictures: /
Since I'm already here, I'd like to tell you that I really appriciate all of the hard work you're doing for the newbies. I'm thankful.
Thanks in advance, Dandi.
-----Edit-----
Just now I've noticed that's the wrong section.. I'm sorry. Please move this if possible.

Dandi

Viestien lukumäärä : 1
Join date : 2013-03-29

Back to top Go down

Re: How to add custom teleport locations?

Post by Rochet2 on Fri Mar 29, 2013 11:30 pm

Well, to add a location basically you dont need to change anything, but add stuff :3

You need to add a new option to the teleporter.
This can be done in gossip_menu_option
By default the menu_ids are 50000-50008
You can copy an option and change it's menu_id and id as well as option_text.

menu_id defines what menu the option will be in. 50000 is main menu by default.
id defines the order. NOTE Dont go changing other options' IDs! ID is used to link the option to the script that teleports the player and the condition that hides the option from ally / horde / low level ..

After adding the option you need to make it teleport the player.
You need to use a smart_script.
Again you can just go to smart_scripts and then search with the teleporter's entry.

You should find the existing rows and just copy one and change the coordinates and mapID. You also need to change the menu_id and id to the parameters (event_param) and the id of the row that separates it from other rows.

http://collab.kpsn.org/display/tc/Gossip+menu+option+tc2
http://collab.kpsn.org/display/tc/smart_scripts
optional: http://collab.kpsn.org/display/tc/Conditions+tc2
avatar
Rochet2
Admin

Viestien lukumäärä : 196
Join date : 2010-02-04

http://emuproject.bbflash.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum