Jump to content
  • 0

rAthena to eAthena script please help


Question

Posted (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 by caspa
need to clarify my point

3 answers to this question

Recommended Posts

  • 0
Posted

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.... :(
  • 0
Posted (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 by caspa

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...