Forum > Serverside Modding

[QUESTION][C++] Item spawn npc in few areas

<< < (2/2)

Kaev:

--- Quote from: "bizzlesnaff" ---Hey :)
I don't like to create a new topic, so I'll ask here :)
If you don't know the right "script-command" to create anything like you want. Where do you look for an answer?
I try to find a wiki or something, but I even don't know how to look... with "trinitycore c++ script wiki" or "trinitycore c++ commands" I didn't find anything usefull.

Is there a list something like...well i don't know..
ADD_GOSSIP_ITEM : "with this command you add a row in the gossip menu. the syntax is:
player->ADD_GOSSIP_ITEM(    !!ICON!! , "!!!YOUR TEXT!!!" , GOSSIP_SENDER_MAIN, !!!Number!!!);

Well...I hope someone know what I mean :)
--- End quote ---
If i search a hook, i always search them in this file: https://github.com/TrinityCore/TrinityC ... criptMgr.h
For the other stuff, i test around, use google for script examples, write and read on emudevs (a board related to wow emulator development only, best one imo!) or search a function in the solution in visual studio.
But if i know the command, e.g. add_gossip_item, i type in player->Add_gossip_item and read the parameter names, which will usually tell me everything.

bizzlesnaff:
Thank you again :)
Thats very usefull :)

Navigation

[0] Message Index

[*] Previous page

Go to full version