Jump to content

Recommended Posts

all right, I post up my custom stylist

 

Download: 1.7
script

 

this one use CSV format

    .list$[LOOK_HAIR] = "0-5,11-18,20-23";
    .list$[Job_Summoner + LOOK_CLOTHES_COLOR] = "0-1";

This means, the ID range for hair style is 0,1,2,3,4,5,11,12,13,14,15,16,17,18,20,21,22,23
2nd line means Summoner job can only use clothing range 0 and 1, this prevent crash client

 

Spoiler

1.0 - script
- there is a bug on Euphy's stylist npc, the style number should start with 0, but his script always start with 1
- and the naming sense very bad, [email protected] and [email protected], should be avoided

1.1 - script
- allow blacklist certain styles

1.2 - script
- change from blacklist into CSV format, this one is understood by many

1.3 - script
- add Job_Summoner, to prevent client crash from invalid cloth color

1.4 - script
- add 3rd job body style change

1.5 - script
- fix a bug if the player start with style number 510, the server throw you infinite loop error

1.6 - script
- now the styles display number no longer shown to other players

1.7 - script

- add reverse_order to swap Next/Previous order

- now players don't have to go to flux cp every time to reset their look when client crash, since this script uses changelook instead of setlook now

 

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

1.5 - script
- fix a bug if the player start with style number 510, the server throw you infinite loop error
thanks to @clive for reporting !

 

and nope, rathena version which use inarray script command doesn't seem to be affected ...
wtf why this PR not yet merge .... grrr .....

Share this post


Link to post
Share on other sites

1.6 - script
- now the styles display number no longer shown to other players

 

On 4/3/2019 at 8:34 AM, monchee said:

Perfect! Just when I just recently made a server. Do I just add to the custom npc scripts and then enable?

https://github.com/HerculesWS/Hercules/wiki/Adding-a-Script#adding-and-activating-scripts

Share this post


Link to post
Share on other sites
[Error]: script error in file 'stylist.txt' line 23 column 26 
    parse_line: need ';' 
    20:         .@lookpart = .@part = .look[.@choose]; 
    21:         if ( BaseClass == Job_Summoner ) 
    22:                 .@part += Job_Summoner; 
*   23:         .@revert = .@i = inarray( getd(".list"+ .@part), getlook( .@lookpart ) ); 
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 
    24:         while ( true ) { 
    25:                 setlook .@lookpart, getd(".list"+ .@part +"["+ .@i +"]"); 
    26:                 showscript "This is style #"+ getd(".list"+ .@part +"["+ .@i +"]") +".", getcharid(3), SELF; 

 

Git revision (src): '52abec06442607fca319a8309d26674871b25b53'

Share this post


Link to post
Share on other sites

hey @AnnieRuru this is a nice script, the most complete one that I found, I have only one question and a few suggestions if you plan to do any update to it:

 

question:

- how do I change the class check so I could show the body style menu to a few more classes (soul linker and star gladiator)

 

suggestions:

- add a setting to block cloth color change if you have a body style > than 0 (people using custom palettes will love this because body style palette is different than current one)

- make the npc change the color only if the user chose option: "I want this color", otherwise just make it show the colors but if user close the npc or exit, revert to original color

- arrange the menu dynamically so if I select the Previous option, it will become the first menu option so I can browse the colors backward easily, until I select Next again

 

not so useful suggestion, but kinda a dream:

- option to save/load style set (cloth, hair color and hair style), just like those npc that save builds, saving them with an account variable so for example you could save a style that you liked and then instead of having to browse between everything again in another char, you just talk with npc and load that same style you saved before

Share this post


Link to post
Share on other sites

*1 month later*

 

ok let's see

On 9/18/2020 at 4:48 PM, evilpuncker said:

question:

- how do I change the class check so I could show the body style menu to a few more classes (soul linker and star gladiator) 

already done here, also I tried in my test server, my hexed client doesn't have additional body style support for soul linker etc ...
so its your custom stuffs

 

On 9/18/2020 at 4:48 PM, evilpuncker said:

- add a setting to block cloth color change if you have a body style > than 0 (people using custom palettes will love this because body style palette is different than current one)

each body style has its own array ? its own CSV style string again ?

..... you dummy baka baka baka baka baka

 

On 9/18/2020 at 4:48 PM, evilpuncker said:

- make the npc change the color only if the user chose option: "I want this color", otherwise just make it show the colors but if user close the npc or exit, revert to original color

use *changelook instead of *setlook

On 9/18/2020 at 4:48 PM, evilpuncker said:

- arrange the menu dynamically so if I select the Previous option, it will become the first menu option so I can browse the colors backward easily, until I select Next again

add [email protected]_order variable

 

1.7 - script

- add reverse_order to swap Next/Previous order

- now players don't have to go to flux cp every time to reset their look when client crash, since this script uses changelook instead of setlook now

 

 

 

On 9/18/2020 at 4:48 PM, evilpuncker said:

not so useful suggestion, but kinda a dream:

- option to save/load style set (cloth, hair color and hair style), just like those npc that save builds, saving them with an account variable so for example you could save a style that you liked and then instead of having to browse between everything again in another char, you just talk with npc and load that same style you saved before 

.... account ?

if I have a 3rd job, save this built, apply to summoner job,
BAM client crash

nice idea but isn't very practical to have ....

 

for example Rushia changed her hair color from Green to Pink ... I can't recognize her for awhile

and all the fan art about her has green color hair =/

she try to change her look but what she did was smack her own fan art

 

EDIT: I think can make this possible JUST don't give save/load option for doram class ...

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

https://rathena.org/board/topic/126230-help-stylist-restriction-bodystyle-2/?do=findComment&comment=387404

@evilpuncker do you have same problem as him ?

 

so you guys make a new custom body style for that job but don't have enough cloth color to match it ?

where can I download those things then ?

Share this post


Link to post
Share on other sites
On 10/16/2020 at 3:31 AM, AnnieRuru said:

so you guys make a new custom body style for that job but don't have enough cloth color to match it ?

where can I download those things then ?

 

I didn't made a custom one, I just copied the soul reaper and star gladiator new jobs to the costume folder to make my players be able to change into them until hercules implement them (I can dream, right? 😀)

 

5xNE65U.png

that is why I asked that time to make the body style option show for them too

 

 

(my body palette issue I explained here)

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.