Jump to content
  • 0

Custom Box with function script


Question

Posted (edited)

my problem is when they clicked it accidentally and they cancelled it the item will be gone

how can i make this item when used and cancel the item still in to inventory ? 

here is the script

function    script    JobBox    {
setarray .@Jobs$[0], "Str Set:Vit Set:Int Set:Dex Set";
setarray .@Items[0],30039,30039,30040,30042,30041;
set .@menu$,"";
for(set .@i,0; .@i<getarraysize(.@Jobs$); set .@i,.@i+1)
 set .@menu$, .@menu$+.@Jobs$[.@i];
getitem .@Items[select(.@menu$)], 1;
close;
}

 

item.db

30037,Solo_Freebies,Solo_Freebies,2,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "JobBox",1; },{},{}
 

 

rathenaaa.png

Edited by waaa123

2 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.

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...