Page 1 of 1
The Missing Piece (Teleport-Altep) Quest
Posted: Thu Jul 09, 2015 12:22 pm
by ssj4puar
i started scripting this and realized i didnt know how to get the ???'s to appear for the KI in quicksand caves. So ive compiled a list of questions
question 1: Are the ???'s already created in the lua and/or npc_list table? if so which ones are they? is there a way to figure it out at all?
question 2: are there even 5 npc ???s or just 1 that we can move from one XYZ loc to another?
question 3: If they are not created, How would one go about creating/adding them to the game? where would i have to add scripts and table entries to get them to pop on the server?
question 4: is there any code at the moment that is a good example of how to get these ???'s to randomly appear? in the quest only 1 can be visible at a given time.
That all i can think of at the moment. Other than that i have the rest of the quest coded.
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Thu Jul 09, 2015 6:34 pm
by demolish
1) try to interact with the ???, if they dont have a script, you'll see an error in dsgame-server with the name of the missing npc's script, or just check npc_list for any qms near the coordinates where you'd find one in retail
2) check npc_list, you can also move their position using npc:setPos(x,y,z,rot);
3) see above
4)
https://github.com/DarkstarProject/dark ... c%3AsetPos
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Thu Jul 09, 2015 6:39 pm
by ssj4puar
demolish wrote:1) try to interact with the ???, if they dont have a script, you'll see an error in dsgame-server with the name of the missing npc's script, or just check npc_list for any qms near the coordinates where you'd find one in retail
Unfortunately i was unable to locate the point at any of the 5 locations. There are several ???'s for quicksand caves. does it matter which one i use or is it good as long as i dont use one that is already in use?
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Thu Jul 09, 2015 6:45 pm
by demolish
if it's not in use, just set its status to 0 in npc_list and it'll appear (gotta restart server though)
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Fri Jul 10, 2015 11:32 am
by TeoTwawki
It sounds like he needs the NPC's to appear and disappear, at various postilions. My memory is a bit fuzzy but I think that was the teleport altep quest, and the KI needed was at a random ??? NPC that could be one of several with not all of them up at once.
To appear:
To disappear:
If you also need to change its position (which is prolly simpler than using retails multiple NPC's) or you can array the NPC IDs and switch which one is spawned:
There are also time based command to set an npc spawned/hidden for specified durations. showNPC(time) and hideNPC(time) where time is the number of seconds.
See the files in this dir for every script-able command, mainly luabaseentity.cpp and luautils.cpp :
https://github.com/DarkstarProject/dark ... rc/map/lua
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Fri Jul 10, 2015 11:35 am
by ssj4puar
Thank you all for the help.
Welp it took a bit but i finished scripting the quest. The random spawn points function. all the Key items goto the right places. Correct Rewards on completion. everything looks good to me. i imagine there is someone who has to review what ive done b4 it gets added. How do i go about commiting the code i've done?
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Fri Jul 10, 2015 4:13 pm
by demolish
commit your changes using appropriate labels for the commit (see
https://github.com/DarkstarProject/dark ... l-requests )
fork the repo (see
https://help.github.com/articles/fork-a-repo/)
push to your fork
create a pull request (see
https://help.github.com/articles/creati ... l-request/ if you're not sure how to do so)
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Fri Jul 10, 2015 5:16 pm
by ssj4puar
Not entirely familiar with creating forks/branches? with Source Control software. at the moment i think i have a branch called SSJ-Dev locally on my computer and there is an option to "Publish" which i think will push the fork/branch to the server.
However before i click something and over-write someone elses work on accident i'd like to make sure i've got the right idea.
Screen shot of current situation
http://gyazo.com/a49b17165ad38657944ba4cc678fdcb0
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Fri Jul 10, 2015 5:54 pm
by ssj4puar
skipped a few steps possibly when getting the files the 1st time. following the links you gave me to the letter now.
Re: The Missing Piece (Teleport-Altep) Quest
Posted: Fri Jul 10, 2015 11:09 pm
by ssj4puar
Ok i got it all figured out. Ill have to get the process i did down for the next change i make. kinda just fumbled around till it got committed to my fork. make a pull request to the master and i guess its a waiting game now.
Thank you everyone for all the help in getting me to understand how everything works!