LUA Quest Information
Moderator: Team Members
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Make sure you are using the development update server (port 9102) otherwise it wont get the correct opcodes. As far as 4412 the opcodes were wrong for the dialog selection.
BTW I am uploading a new client.cpp file to SVN. Be sure to use this new one because I am about to make an opcode change that will break the existing version. I was using the wrong opcode and need to fix it.
BTW I am uploading a new client.cpp file to SVN. Be sure to use this new one because I am about to make an opcode change that will break the existing version. I was using the wrong opcode and need to fix it.
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
Yes I am using port 9102 of the update server. There are more than 500 new opcodes in the table, latest ones being version_range of 898?LethalEncounter wrote:Make sure you are using the development update server (port 9102) otherwise it wont get the correct opcodes. As far as 4412 the opcodes were wrong for the dialog selection.
OK, i will update via SVN and recompile my exeBTW I am uploading a new client.cpp file to SVN. Be sure to use this new one because I am about to make an opcode change that will break the existing version. I was using the wrong opcode and need to fix it.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Just so I know I am thinking right...
You have to assign the spawnscripts to the quest giver in zonespawngroups.
Then, you have to put KillCrabs.lua in the quests table.
Then somehow, likely magically, the spawnscripts lua knows to find KillCrabs.lua in the quests table and assigns the quest to the player if they accept it.
Is that "1" the quest ID? How does the spawnscript know what quest to offer? While Murrar Shar is talking and offering, I figured the accepting wasn't done yet. I never bothered to check my journal, since saving progress wasn't ready.
You have to assign the spawnscripts to the quest giver in zonespawngroups.
Then, you have to put KillCrabs.lua in the quests table.
Then somehow, likely magically, the spawnscripts lua knows to find KillCrabs.lua in the quests table and assigns the quest to the player if they accept it.
Code: Select all
OfferQuest(NPC, Spawn, 1)-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
That is the quest ID.John Adams wrote:Is that "1" the quest ID?Code: Select all
OfferQuest(NPC, Spawn, 1)
I also have the same problem, I have tried with client versions 5016L and 4591L every thing works great but when I accept the quest I gat that unhandled command.Zcoretri wrote: 5016L is the version I tried with. I get this in the world console.
Unhandled command: q_accept_pending_quest
My update port is 9102 and I just updated and recompiled from the svn a few mins ago.
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
OK, it was partly my fault and partly yours 
My fault: I forgot to update the commands table on the update server so that it would send out the quest command updates. Sad that you are the only one who seems to have even tried the new quest system, as without those commands it wouldn't work. :/
Your fault: You set the quest up on an merchant NPC with the default action being a buy/sell. You would need to hit 'H' or right click them to hail them.
Just restart your world and it should be fine.
My fault: I forgot to update the commands table on the update server so that it would send out the quest command updates. Sad that you are the only one who seems to have even tried the new quest system, as without those commands it wouldn't work. :/
Your fault: You set the quest up on an merchant NPC with the default action being a buy/sell. You would need to hit 'H' or right click them to hail them.
Just restart your world and it should be fine.
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
saw commands table update when I restarted my serverLethalEncounter wrote:OK, it was partly my fault and partly yours
My fault: I forgot to update the commands table on the update server so that it would send out the quest command updates. Sad that you are the only one who seems to have even tried the new quest system, as without those commands it wouldn't work. :/
I realized that, thats why I added a secondary command and set it to 1 for the right click optionYour fault: You set the quest up on an merchant NPC with the default action being a buy/sell. You would need to hit 'H' or right click them to hail them.
Viola....working! Thanks LE
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
I probably would have done some testing beyond talking to Murrar Shar had I not been scolded for not reading the first few lines of the opening post that stated it wasn't working yet.LethalEncounter wrote:Sad that you are the only one who seems to have even tried the new quest system, as without those commands it wouldn't work. :/
But I shall dig into it today. Reconfiguring TessEQ2 hardware a little first... moving it to a physical machine for some kick-it-in-the-ass testing
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Regarding my assinine questions sometimes...
John Adams wrote:Is that "1" the quest ID? How does the spawnscript know what quest to offer? While Murrar Shar is talking and offering, I figured the accepting wasn't done yet. I never bothered to check my journal, since saving progress wasn't ready.Code: Select all
OfferQuest(NPC, Spawn, 1)
It's no excuse, but sometimes this website is so f'n slow, I immediately lose patience with trying to find info because it is 20-30 seconds to click a link. When I do get a page, it's usually to submit a question because of the former. So, sorry... I'll just stop asking stuff... because all it makes me look like is stupid.Lethalencounter wrote:OfferQuest(NPC, Spawn, Quest ID) - Offers the quest to the Spawn (Player).
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Heh, no I never said it didn't work. I said it, well I forget what I said now, but I never said it didn't workJohn Adams wrote:Regarding my assinine questions sometimes...John Adams wrote:Is that "1" the quest ID? How does the spawnscript know what quest to offer? While Murrar Shar is talking and offering, I figured the accepting wasn't done yet. I never bothered to check my journal, since saving progress wasn't ready.Code: Select all
OfferQuest(NPC, Spawn, 1)It's no excuse, but sometimes this website is so f'n slow, I immediately lose patience with trying to find info because it is 20-30 seconds to click a link. When I do get a page, it's usually to submit a question because of the former. So, sorry... I'll just stop asking stuff... because all it makes me look like is stupid.Lethalencounter wrote:OfferQuest(NPC, Spawn, Quest ID) - Offers the quest to the Spawn (Player).
Anyways, yes that is the quest ID. You set it in the quests table and it uses that table to correlate the quest id to the quest script it should run.
Who is online
Users browsing this forum: No registered users and 0 guests