Jump to content
  • 0

Help, a Map where all have Novices sprite


Noob Coder

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  11/20/22
  • Last Seen:  

Hello everyone. I am thinking of a feature of a map where any player who enters a map ex. pay_dun01 their body sprite will change into novice sprite. I want their original head sprite kept and enable a mapflag that restrict costumes.

I just want some direction points to start to and hopefully figure out the rest. 

I have already have grf editor and i think i need a compiler or something alike. I tried using VS and trying to study how it works if you can suggest a noob-friendly alternative maybe.

 

Thank you so much.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   16
  • Joined:  07/28/12
  • Last Seen:  

try with:

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L4531
 

*changebase <job ID number>{,<account ID>};

This command will change a character's appearance to that of the specified job
class. Nothing but appearance will change.

The command will run for the invoking character unless an account ID is given.

	changebase Job_Novice; // Changes player to Novice sprite.
	changebase Class; // Changes player back to default sprite.

 

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L963
 

OnPCLoadMapEvent:

This special label triggers when a player steps in a map marked with the
'loadevent' mapflag and attaches its RID. The fact that this label requires a
mapflag for it to work is because, otherwise, it'd be server-wide and trigger
every time a player would change maps. Imagine the server load with 1,000 players
(oh the pain...)

 

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  11/20/22
  • Last Seen:  

15 hours ago, Angeluz said:

try with:

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L4531
 

*changebase <job ID number>{,<account ID>};

This command will change a character's appearance to that of the specified job
class. Nothing but appearance will change.

The command will run for the invoking character unless an account ID is given.

	changebase Job_Novice; // Changes player to Novice sprite.
	changebase Class; // Changes player back to default sprite.

 

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L963
 

OnPCLoadMapEvent:

This special label triggers when a player steps in a map marked with the
'loadevent' mapflag and attaches its RID. The fact that this label requires a
mapflag for it to work is because, otherwise, it'd be server-wide and trigger
every time a player would change maps. Imagine the server load with 1,000 players
(oh the pain...)

 

Thank you, I think this is a good direction to start with. 

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...