Kakaroto Posted July 10, 2016 Group: Members Topic Count: 99 Topics Per Day: 0.02 Content Count: 638 Reputation: 95 Joined: 05/11/12 Last Seen: 15 hours ago Share Posted July 10, 2016 Hello!Someone could tell me what's wrong with this check? if ( getstatus( SC_MONSTER_TRANSFORM,1 ) != 1002) { No error message displayed in map_server but does not work. Quote Link to comment Share on other sites More sharing options...
0 _Okuz_ Posted July 11, 2016 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 92 Reputation: 17 Joined: 08/11/12 Last Seen: August 30, 2017 Share Posted July 11, 2016 (edited) @KakarotoTake a look at this:https://rathena.org/board/topic/106561-how-to-check-if-player-is-transformed/ If you're telling me that your script didn't work as expected then I need to ask you which rAthena revision are you using because Hagane no Bushi and Kurofly are telling us that this solution worked for both of them.According to the getstatus command description found in doc/script_commands.txt: *getstatus(<effect type>{,<type>{,<char_id>}}) Retrieve information about a specific status effect when called. Depending on <type>specified the function will return different information.Possible <type> values: - 0 or undefined: whether the status is active - 1: the val1 of the status - 2: the val2 of the status - 3: the val3 of the status - 4: the val4 of the status - 5: the amount of time in milliseconds that the status has remainingIf <type> is not defined or is set to 0, then the script function will eitherreturn 1 if the status is active, or 0 if the status is not active. If the statusis not active when any of the <type> fields are provided, this script functionwill always return 0. According to SC_MONSTER_TRANSFORM status description found in doc/status_change.txt: SC_MONSTER_TRANSFORM () desc: Monster Transformation. (DO NOT USE THIS DIRECTLY, use script 'transform') val1: Monster ID val1 is related to the Monster Id of the transformation and getstatus(<status>,1) retrieves the val1 of the given status.Best regards,_Okuz_. Edited July 11, 2016 by _Okuz_ Quote Link to comment Share on other sites More sharing options...
Question
Kakaroto
Hello!
Someone could tell me what's wrong with this check?
No error message displayed in map_server but does not work.
Link to comment
Share on other sites
1 answer 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.