Jump to content
  • 0

Easy questions for you! :)


megablox

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

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.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

Thanks!

By the way, are there any ways of adding comments in a script? Like, //comment, or something like that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

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 by megablox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  221
  • Reputation:   12
  • Joined:  12/18/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   8
  • Joined:  04/08/12
  • Last Seen:  

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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...