Jump to content
  • 0

Quest Script messed up


Question

5 answers to this question

Recommended Posts

Posted (edited)

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
Posted

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!!";

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...