Jump to content
  • 0

Quest Script messed up


Seiro

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  10/24/12
  • Last Seen:  

Ok, I almost finished this script but messed it up :( I tried fixing it but now I lost where the problem is..

Map-server is not saying anything so I think it's something else..

my quest script

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   6
  • Joined:  01/06/12
  • Last Seen:  

What is it doing that it shouldn't? That'll help narrow it down.

Edit:

Oh. You have a 'close' in your NPC after the first two lines, so literally every single thing after that will not trigger unless you use a DoNPCEvent. (Look at line 50 on your pastebin link)

You also have a close inside your switch statement on line 55, along with a close on either case, it's redundant.

You may want to consider commenting your code to follow your own logic, because there are actually a lot of functional errors with your quest. Try looking at another quest script as an example/something to compare to (an official one, maybe, that comes with rAthena), it'll help out a lot.

Edited by Variant
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  10/24/12
  • Last Seen:  

What is it doing that it shouldn't? That'll help narrow it down.

Edit:

Oh. You have a 'close' in your NPC after the first two lines, so literally every single thing after that will not trigger unless you use a DoNPCEvent. (Look at line 50 on your pastebin link)

You also have a close inside your switch statement on line 55, along with a close on either case, it's redundant.

You may want to consider commenting your code to follow your own logic, because there are actually a lot of functional errors with your quest. Try looking at another quest script as an example/something to compare to (an official one, maybe, that comes with rAthena), it'll help out a lot.

I removed the close already. But still the same.

The first NPC should trigger the 2nd one, but it's not, it's stuck with

mes "Where is it.. WHERE IS IT?! I can't find it!!";

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

your curley / close part is messy... you should plan it nicely...

try this

http://pastebin.com/raw.php?i=VPyVxPgg

normally...if you afraid the script will stuck or end up abnormally..

you cna just try put a close at the last line before the script end..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  10/24/12
  • Last Seen:  

your curley / close part is messy... you should plan it nicely...

try this

http://pastebin.com/raw.php?i=VPyVxPgg

normally...if you afraid the script will stuck or end up abnormally..

you cna just try put a close at the last line before the script end..

I tried that, but still the same.

The 3rd NPC is still saying the same stuff.. not making him get the item

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...