Builder's Port Down

For builders to discuss and ask building questions.
Post Reply
Arnof
Sword Journeyman
Sword Journeyman
Posts: 129
Joined: Wed Oct 22, 2008 8:47 pm
Location: Arizona, USA
Contact:

Builder's Port Down

Post by Arnof » Sat Jan 02, 2010 5:36 am

While testing a quest in the Blazing Sands Invoker's Guild, Corey found that, it would appear, a step caused the port to crash.
Scenario: PC walks down hall, heads south. Room prog check qbits to see if PC is on step 6. PC was /not/ on step 6, so mob loads in room. Mob proceeds to run his greet_prog:

Code: Select all

>greet_prog 100~
  if level($n) > 39
    if guild($n) == Invokers
      mpechoat $n E'temaad looks you over with a scowl for a moment, eyes blazing as he paces around the room.
      mpechoaround E'temaad looks $n over with a scowl for a moment, eyes blazing as he paces around the room.
      sayto $n YOU! Yes you, wizard. I have need of assistance to reach my home plane.
      sayto $n It is the very reason I sponsored this school. That I might find aid in
      sayto $n returning home! If you will help me I might reward you.
    else
      mpechoat $n E'temaad looks you over with a scowl for a moment, eyes blazing as he paces around the room.
      mpechoaround E'temaad looks $n over with a scowl for a moment, eyes blazing as he paces around the room.
      sayto $n You don't need to be here.
      mptransfer $n 100100
  else
    mpechoat $n E'temaad looks you over critically.
    sayto $n You shouldn't be here, young one.
    mpechoat $n E'temaad waves his hand before him and you fade from his chamber.
    mptransfer $n 100100
    mpforce $n look
    endif
  endif
endif
~
Corey responded with "Yes" and the port immediately went down. The speech_prog that should have triggered read:

Code: Select all

>speech_prog yes aye~
mpmload 100100
  if quest(4,3,$n) == 1
    mpset $n quest 4 3 1
    mpechoat $n E'temaad circles around you with a considering glint to his glowing eyes before speaking.
    mpechoaround E'temaad circles around $n with a considering glint to his glowing eyes before speaking.
    sayto $n First I must test you to see if you have the strength to 
    sayto $n do what needs to be done.     sayto $n You will need to gather
    sayto $n an important component for my work as well.
    mpecho at $n E'teemad gives you a dark and serious look.
    sayto $n You must bring me the life blood of a red wyrm. It's blood 
    sayto $n holds the key to opening a path to the plane that is my home. 
    sayto $n Once you have found it, bring it back to me. Understood?
    mpset $n quest 4 3 2
  else
    mpechoat $n E'temaad ignores you, facing a wall, deep in thought.
  endif
endif
~
Now, I already see at least two issues. One, the mpmload should not have been in the speech_prog, that was left over from something else that was removed. The second issue is an extra endif in the greet_prog as well as another in the speech_prog. Could either of these issues have caused the crash?

Whatever the case, to anyone whose progress I halted because of half-assed error catching, I apologize. Hopefully this is enough information to find the cause of the crash and if not, maybe there's something else and we'll be able to target that.

B
Post Reply