caspa Posted June 11, 2017 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted June 11, 2017 (edited) if( select( "Submit Completed Mission","Cancel" ) == 1 ){ [u] for( .@ms = ( @ms_size - 1 ); .@ms >= 0; .@ms-- ) [/u] if( @ms_list$[.@ms] == ""+.@mission_id ){ mes "^0055FF[ "+.@npc_name$+" ]^000000"; query_sql( "UPDATE `player_mission` SET `completion` = NOW() WHERE `cid` = "+getcharid(0)+" AND `mission_id` = "+.@mission_id +" AND `completion` = '0000-00-00 00:00:00'" ); mes "Mission accomplished."; [u] @ms_size--; [/u] // clear requirement. setd( "@ms_"+.@mission_id+"_expire" ),0; deletearray getd( "@ms_"+.@mission_id+"_list" ); deletearray getd( "@ms_"+.@mission_id+"_qty" ); deletearray getd( "@ms_"+.@mission_id+"_hunt" ); if( .@item_size ) for( .@i = 0; .@i < .@item_size; .@i++ ){ // debugmes getitemname( .@item_list[.@i] )+" - "+.@item_qty[.@i]; delitem .@item_list[.@i],.@item_qty[.@i]; } mes "Gained some mission's rewards."; // rewards getexp .@baseexp,.@jobexp; if( .@reward_size ) for( .@i = 0; .@i < .@reward_size; .@i++ ) getitem .@reward_list[.@i],.@reward_qty[.@i]; [u] #CASHPOINTS += .@cash; [/u] [u] Zeny += .@zeny; [/u] break; hi this is a piece of script from emistry i was wondering how to convert the highlited part into eathena thank you the one that has the u box. hahaha i dunno how to properly underline the word sorry. Edited June 11, 2017 by caspa need to clarify my point Quote Link to comment Share on other sites More sharing options...
0 caspa Posted June 12, 2017 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted June 12, 2017 can anybody help me please? i really have no idead how to convert this part... for( .@ms = ( @ms_size - 1 ); .@ms >= 0; .@ms-- ) i know to convert the for ( set.@ms,(@ms_size -1 ); .@ms >= 0; but i don't know how to convert this [u].@ms--[/u] also for this part Zeny += .@zeny; i don't know how to convert the one that has += sign.... :( Quote Link to comment Share on other sites More sharing options...
0 Secrets Posted June 12, 2017 Group: Developer Topic Count: 36 Topics Per Day: 0.01 Content Count: 588 Reputation: 438 Joined: 01/26/16 Last Seen: 3 hours ago Share Posted June 12, 2017 x--; equals to set x,x-1; a += b; equals to set a,a+b; Quote Link to comment Share on other sites More sharing options...
0 caspa Posted June 12, 2017 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted June 12, 2017 (edited) 3 hours ago, Secrets said: x--; equals to set x,x-1; a += b; equals to set a,a+b; sir thank you so much for replying to my question how about this one sir .@job_branch_bitmask |= .@bitmask_value; how to convert the |= sign? and also this sign sir -= Edited June 12, 2017 by caspa Quote Link to comment Share on other sites More sharing options...
Question
caspa
hi this is a piece of script from emistry i was wondering how to convert the highlited part into eathena thank you the one that has the u box. hahaha i dunno how to properly underline the word sorry.
need to clarify my point
Link to comment
Share on other sites
3 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.