I ran into a quest the other day which I think will require some more server support. I was thinking of ways this can be done because I'm fairly certain I can implement it, I just wanted to get an opinion first.
The quest is, you have 8 steps given to you right away. You have to plant seeds into 8 plant boxes. The problem is, if I used AddQuestStepSpell, the same spell would update all 8 steps at once. Also, each planter box updates its own corresponding quest step (so you can't click the same planter box 8 times).
I thought of two ways so far:
1) Make it so every time you cast a spell on a spawn, a function from the target's spawn script is called. This would require making another type of quest step that can only be updated via SetStepComplete.
2) If that doesn't sound like a good idea, I could always implement an GetID LUA function to compare which planter box the target is in the cast function of the spell, and update the step by figuring out which planter box was the target of the spell.
Either way, I think we're going to need some kind of "dummy" quest step that can only be updated by SetStepComplete or SetStepQuantityComplete. What do you guys think?
Quest Development
Moderator: Team Members
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Re: Quest Development
Sounds like AddQuestStepSpell needs a parameter that specifies the max number of steps that is can update for one cast. That or hard code it to only allow one step update per cast.
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Quest Development
Hmm that sounds like a good idea. The only problem is, if I click planter box 8, step 1 will still be completed first. Then step 2, then step 3, etc. We'd need it so if you click planter box 8, quest step 8 is completed. If you click planter box 5, step 5 is completed, etc.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Quest Development
Right, in any order. Cuz that's how I did the quest in Castleview originally.
Who is online
Users browsing this forum: No registered users and 0 guests