Hey, I'm new to this forum and to scripting in general, so nice to meet everyone, and hope you're forgiving with mistakes!
I'm writing a script for a friend's server, but I'm new at this (programming in general actually), so I'm having a hard time... I've read rAthena script commands manual thoroughly, although it still gives us beginners a hard time...
Anyway, I'm trying to script a NPC which gives out quests depending on your level. These quests would be one-shots (so you could only do them once on every level gap) and the NPC would have a unique text for the first time you speak to them.
I'm not requesting a full script, but a little push in the right direction, that is, where to start...
I already have the level branches scripted in the form of:
if (BaseLevel < 50) {
}
else {
if (BaseLevel < 80) {
}
else {
if (BaseLevel < 100) {
}
else { //= Base level above 99, e.g. 100+
}
There is probably an easier way to do this, but as stated above, I'm a beginner. I think I could use the baselevel data as an integer and make it match between values to call up different quest levels... But anyway...
If anyone can help me out, I'd be glad to learn.
If anything seems confusing or out of order, let me know.
Best regards,
BMythes.