Jump to content
  • 0

Item Box with list to choose


Critica

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

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

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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; }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

thanks Euphy,

there's some mistake in the script, but i got it all figured out.. it worked as i expected.

you're always helping me,, thanks again /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Oh, my bad, forgot the colons lol. Sorry about that, and no problem~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

hahaa!! greaaaaaaaat!! thanks bRo! ur awsome

(DOne)

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