Jump to content
  • 0

Refined account bound items


unrestricted

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  03/02/20
  • Last Seen:  

Sorry I'm not really good in coding, I just need help to change my script from unrefined item to refined item (Account Bound). Thanks in advance!

 

This is the script

 

    if ( gepard_int_get("GPACKRWD") ) {
        mes "You already received your reward previously.";
        close;
    }
    mes "Which job you would like to have?";
    next;
    .@s = select(.menu$)-1;
    mes "here you go!";
    close2;
    gepard_int_set("GPACKRWD",true);
    explode(.@T$, .data$[.@s], "|");
    explode(.@TT$, .@T$[1], ",");
    for ( .@i = 0; .@i < getarraysize(.@TT$); .@i++ ) {
        explode(.@item$, .@TT$[.@i], ":");
        getitembound3 atoi(.@item$[0]), atoi(.@item$[1]), Bound_Account;    // account bound    
    }
    end;
    
OnInit:
    setarray .data$, 
    // <JobID>|<item>:<amount1>{,<item2>:<amount2>}..
        "4008|2504:1",
        "4009|2504:1";
    
    for (.@i = 0; .@i < getarraysize(.data$); .@i++ ) {
        explode(.@T$, .data$[.@i], "|");
        .jobid[.@i] = atoi(.@T$[0]);
        .reward$[.@i] = .@T$[1];
        .menu$ += jobname(.jobid[.@i]) + ":";
    }
    end;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   1
  • Joined:  03/12/21
  • Last Seen:  

Hi!

If I'm not mistaken, you need to do getitembound2:
 

*getitembound2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<bound type>{,<account ID>};
*getitembound2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<bound type>{,<account ID>};

This command behaves identically to 'getitem2', but the items created 
  will be bound to the target character as specified by the bound type. 
  All items created in this manner cannot be dropped, sold, vended, 
  auctioned, or mailed, and in some cases cannot be traded or stored.
  
identify    - Whether you want the item to be identified (1) or not (0).
refine      - For how many pluses will it be refined.
              It will not let you refine an item higher than the max refine.
attribute   - Whether the item is broken (1) or not (0).
card1,2,3,4 - If you want a card compound to it, place the card ID number into
              the specific card slot.

so for example: (obvs without the spaces but it's to explain)

getitembound2 atoi(.@item$[0]), atoi(.@item$[1]),  1,          10,         0           ,  ,  ,  ,  ,Bound_Account;

gets the item             ID                 amount     identified     refine  attribute   cards      bound

even if you put no cards you need to put the commas because otherwise it won't read the script properly ~

Edited by Elicorna
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...