The Missing Piece (Teleport-Altep) Quest
The Missing Piece (Teleport-Altep) Quest
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.
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
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
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
Click here for a guide on scripting missions.<Giblet[NewBrain]> kj with this first step would be fine on my shit
Re: The Missing Piece (Teleport-Altep) Quest
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?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
Re: The Missing Piece (Teleport-Altep) Quest
if it's not in use, just set its status to 0 in npc_list and it'll appear (gotta restart server though)
Click here for a guide on scripting missions.<Giblet[NewBrain]> kj with this first step would be fine on my shit
Re: The Missing Piece (Teleport-Altep) Quest
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
To appear:
Code: Select all
npc:setStatus(STATUS_NORMAL);
Code: Select all
npc:setStatus(STATUS_DISAPPEAR);
Code: Select all
npc:setPos( X, Y, Z);
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
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
Re: The Missing Piece (Teleport-Altep) Quest
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?
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
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)
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)
Click here for a guide on scripting missions.<Giblet[NewBrain]> kj with this first step would be fine on my shit
Re: The Missing Piece (Teleport-Altep) Quest
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
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
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
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!
Thank you everyone for all the help in getting me to understand how everything works!