Seiro Posted November 13, 2012 Posted November 13, 2012 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 Quote
Variant Posted November 13, 2012 Posted November 13, 2012 (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 November 13, 2012 by Variant Quote
Seiro Posted November 13, 2012 Author Posted November 13, 2012 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!!"; Quote
Emistry Posted November 13, 2012 Posted November 13, 2012 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.. Quote
Seiro Posted November 13, 2012 Author Posted November 13, 2012 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 Quote
Emistry Posted November 13, 2012 Posted November 13, 2012 try ? http://pastebin.com/raw.php?i=q9e6k7yi Quote
Question
Seiro
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
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.