Jump to content

BMythes

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by BMythes

  1. I agree. I have used NP++ for a while, and I really felt the difference when switching to Atom. While coding HTML and CSS, ATOM helps SO SO much with those packages on closing, auto-completing, etc... I'm gonna see what I can do, maybe even learn how to make ATOM learn rAthena's coding.
  2. @randell1993 Thanks for your answer. I'm a beginner at coding html and css, so I got used to ATOM's filling functions while coding. Is there anyway to do the same while coding rAthena?
  3. Hey Guys, Not really a Scripting help needed, but a program for scripting. So, I'm using NotedPad++ to script, but I'm taking this Coding class where we're using ATOM. Bottom line is, I've tried scripting with ATOM, but due to it trying to correct all of my functions, writings and etc, it's really tiring me out. So, does anyone have a plugin or any sort of idea on how to code using ATOM without it being "weird"? If you have scripted rAthena with ATOM before, let me know. Thank you, BMythes.
  4. Hey, thanks Kaze. Yeah, I thought about that, but in the end, that's pretty much what I had before, just throwing the code somewhere else... I was thinking of something like the questlevel taking directly to a menu, but I think that's the way to go... Thanks mate.
  5. Having a hard time with this... Probably due to inexperience... I have a quest that changes its objectives depending on the players level... What I did was assign a variable a certain value (1, 2 or 3) depending on the level the player was when he accepted the quest. The NPC also has a dialogue mid-way through the quest to remind the player what his/her objective list is... So I wanted to have the NPC show the objective list assigned to each difficulty quest (variable == 1, 2 or 3), but having a hard time scripting that into one line. For now I'm using the following: if (questlevel == 1) { mes "Objective List 1"; } if (questlevel == 2) { mes "Objective List 2"; } if (questlevel == 3) { mes "Objective List 3"; } Is there an easier way to do this in a single line of code, or in a simpler way? Thank you.
  6. Number 3 was the one I was having a hard time figuring out... It's a bit different from what I was used to coding. Thank you so much! Hey I just want to be sure on something... So, if I define the CharHasAlreadyTalkedToMe with a @, $ or . , they result in the following: @CharHasAlreadyTalkedToMe = it's temporary, so only valid for this character and will be deleted (I just didn't get WHEN it will be deleted. As soon as NPC stops talking? Or other condition?) $CharHasAlreadyTalkedToMe = It's global and permanent, so every other player on the server will have the same variable when they talk to the NPC. .CharHasAlreadyTalkedToMe = Valid for the NPC and resets when NPC is reloaded / when server is reloaded. If the above is correct, I think I have those kinda figured out... My two questions would be: 1 - The difference between #{variable} and ##{variable}. One is stored local, the other global. So, that means, one is stored for the account and the other one for the server? 2 - Follow my logic and tell me if it's flawed: if I want the character to be able to do the quest only once, I can just set the Variable to X, and have the NPC check for Variable =/= X to be able to do the quest. If I want the quest to be doable ONLY ONCE per ACCOUNT, I have to set the #Variable to X and have the NPC check for #Variable =/= X. If it's only doable once per SERVER, ##Variable set to X, and NPC checks ##Variable =/= X. Thanks!
  7. Hey Ninja, Thank you for your answer. I know the basic of scripting, as I scripted WC3 before, and I have intermediate knowledge of HTML5. So I have experience in learning it... I'm just having a hard time pretty much. Can you give me some pointers towards quest making in rAthena? As in, how to start the one I've asked on this thread? Thanks =)
  8. 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.
×
×
  • Create New...