Jump to content
  • 0

Item Box with list to choose


Question

Posted

hi guys, can anyone script this bonus?

its like a 3rd job ticket where when u use it, it will allow you tho choose what kind of job you want.

but for me, i would like to make it as an item too choose, when a box is click, a list of item to choose will show..

anyone pls?? thanks

7 answers to this question

Recommended Posts

  • 0
Posted
On 6/5/2012 at 1:54 AM, Euphy said:

Create any item and make it call a function. Then,

 


function script JobBox {
setarray .@Jobs$[0], "Rune Knight", "Warlock", "Ranger", "Arch Bishop", "Mechanic", "Guillotine Cross", "Royal Guard", "Sorcerer", "Minstrel", "Wanderer", "Sura", "Genetic", "Shadow Chaser";
setarray .@Items[0], <Rune Knight item>, <Warlock item>, <etc.>;
set .@menu$,"";
for(set .@i,0; .@i<getarraysize(.@Jobs$); set .@i,.@i+1)
 set .@menu$, .@menu$+.@Jobs$[.@i]+":";
getitem .@Items[select(.@menu$)], 1;
return; }
 

 

question how to make item many like vset put it inside for one selection Str Set = vset

Posted

Create any item and make it call a function. Then,

function script JobBox {
setarray .@Jobs$[0], "Rune Knight", "Warlock", "Ranger", "Arch Bishop", "Mechanic", "Guillotine Cross", "Royal Guard", "Sorcerer", "Minstrel", "Wanderer", "Sura", "Genetic", "Shadow Chaser";
setarray .@Items[0], <Rune Knight item>, <Warlock item>, <etc.>;
set .@menu$,"";
for(set .@i,0; .@i<getarraysize(.@Jobs$); set .@i,.@i+1)
 set .@menu$, .@menu$+.@Jobs$[.@i]+":";
getitem .@Items[select(.@menu$)], 1;
return; }

Posted

Hey Euphy, i just notice, after i choose the item, i get stucked i cant, move, need to relog again..

function script JobBox {
setarray .@Jobs$[0], "Valkyrie Package Set STR:Valkyrie Package Set AGI:Valkyrie Package Set VIT:Valkyrie Package Set INT:Valkyrie Package Set DEX:Valkyrie Package Set LUK";
setarray .@Items[0], 13634, 13636, 503, 13637, 13638, 13639;
set .@menu$,"";
for(set .@i,0; .@i<getarraysize(.@Jobs$); set .@i,.@i+1)
 set .@menu$, .@menu$+.@Jobs$[.@i];
getitem .@Items[select(.@menu$)], 1;
end;
}

here's my script. can u fix it?? thanks

Posted

Use "close" instead of "end". You can't use only "end" when there's either a text box open or a menu at some point in the script (the case here).

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