megablox Posted April 9, 2012 Posted April 9, 2012 Hi there, I'm new to scripting here. I was browsing the Downloads section, and I found a script (+10 sure refiner), and by reading it, I didn't understand what the first line meant. hyrule,123,68,5 script Refiner 909,{ Could you explain? Thanks. Quote
Rikimaru Posted April 9, 2012 Posted April 9, 2012 hyrule = the Map name,where the NPC is placed on. 123 = the X-Coordinate,where the NPC is going to appear (on the Map Hyrule) 68 = the Y-coordinate,where the NPC is going to appear (on the Map Hyrule) 5 = the Direction of the NPC,that means,where he is looking at ( Check out the Wiki for more information about this ). script = meanst,that it's a NPC Script,it means,it's no shop,it's no cashshop,it's a script Refiner = the NPC name,the name which is going to appear if you Hover the NPC 909,{ = 909 is the Npc Sprite of the Npc and the ,{ means that the script starts now. Check out the rAthena Wiki for more information about Scripting. http://www.rathena.org/wiki Quote
megablox Posted April 9, 2012 Author Posted April 9, 2012 Thanks! By the way, are there any ways of adding comments in a script? Like, //comment, or something like that? Quote
Syouji Posted April 9, 2012 Posted April 9, 2012 Yep // <- Commented out code so you can write descriptive statements for the programmers side and possibily the user's side for areas of interest such as configuration parameter variables, script information, etc. Quote
megablox Posted April 9, 2012 Author Posted April 9, 2012 (edited) Thanks! Also, is there a way to have an NPC play an animation with sound, or something like that? On the server I was playing, when you were to refine an item, the NPC played a sound with an animation above him. How do I do that? EDIT: I found what I was searching for, but I need a list of effect IDs. Is there any? Edited April 9, 2012 by megablox Quote
Keim Posted April 9, 2012 Posted April 9, 2012 Thanks! Also, is there a way to have an NPC play an animation with sound, or something like that? On the server I was playing, when you were to refine an item, the NPC played a sound with an animation above him. How do I do that? When you refine, with a command or with a NPC Script, it will always have the sound and the little animation above. About the effect list, I'm sure it's somewhere but I can't find it now ( my computer broke down so I'm using another without my Ro files ) D: But I will update If I find it. Quote
megablox Posted April 9, 2012 Author Posted April 9, 2012 Oh, thanks ! Anyway I found the list, and updated the wiki page (I didn't paste the list there, I added a link to pastebin because it was homongous :C) Quote
Question
megablox
Hi there, I'm new to scripting here. I was browsing the Downloads section, and I found a script (+10 sure refiner), and by reading it, I didn't understand what the first line meant.
Could you explain? Thanks.
6 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.