megablox Posted April 9, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 81 Reputation: 10 Joined: 04/08/12 Last Seen: December 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
Rikimaru Posted April 9, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share 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 Link to comment Share on other sites More sharing options...
megablox Posted April 9, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 81 Reputation: 10 Joined: 04/08/12 Last Seen: December 14, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Syouji Posted April 9, 2012 Group: Members Topic Count: 70 Topics Per Day: 0.01 Content Count: 1245 Reputation: 395 Joined: 11/19/11 Last Seen: January 15, 2020 Share 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 Link to comment Share on other sites More sharing options...
megablox Posted April 9, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 81 Reputation: 10 Joined: 04/08/12 Last Seen: December 14, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Keim Posted April 9, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 221 Reputation: 12 Joined: 12/18/11 Last Seen: July 13, 2015 Share 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 Link to comment Share on other sites More sharing options...
megablox Posted April 9, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 81 Reputation: 10 Joined: 04/08/12 Last Seen: December 14, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.