AinsLord Posted March 27, 2018 Posted March 27, 2018 (edited) when double click the box and click cancel the item disappear any solution for that heres my code function script WeponBox { setarray .@Jobs$, "Shin Spear", "Shin Shuriken" , "Shin Kudachi" , "Shin Fist" , "Creator Shin Axe" , "Shin Katana" , "Shin Revolver" , "Stalker Shin Mega Bow" , "Shin Whip" , "Shin Guitar" , "Prof Shin Staff" , "Shin Katar" , "Sinx Shin Dagger" , "WS Shin Bloody Axe" , "WZ Shin Staff" , "HP Shin Reaper" , "Sniper Quincy Bow" , "SG Book"; setarray .@Items, 47001, 47002, 47003, 47004, 47005, 47006, 47007, 47008, 47010, 47011, 47012, 47014, 47015, 47016, 47017, 47018, 47019, 47020; .@size = getarraysize(.@Jobs$); for(.@i = 0; .@i < .@size; .@i++) .@menu$ = .@menu$ + .@Jobs$[.@i] + ":"; getitembound .@Items[select(.@menu$) - 1], 1, Bound_Char; end; } its a callfunc command or how can i make my box have a msg like this #TIA Edited March 27, 2018 by AinsLord 1 Quote
0 Z3R0 Posted March 28, 2018 Posted March 28, 2018 Instead of using select... use prompt Catch the 255 response as "cancel / closed" and give the box back to the player Regarding the menu they have there, that seems to be a custom client menu (no idea) Quote
0 llchrisll Posted March 29, 2018 Posted March 29, 2018 If you would take a look at doc/item_db.txt a bit more you could have seen the Item Type for that already: Quote Type: 0 Healing item. 2 Usable item. 3 Etc item 4 Armor/Garment/Boots/Headgear/Accessory 5 Weapon 6 Card 7 Pet egg 8 Pet equipment 10 Ammo (Arrows/Bullets/etc) 11 Usable with delayed consumption (intended for 'itemskill') Items using the 'itemskill' script command are consumed after selecting a target. Any other command will NOT consume the item. 12 Shadow Equipment 18 Another delayed consume that requires user confirmation before using item. 1 Quote
Question
AinsLord
when double click the box and click cancel the item disappear
any solution for that
heres my code
function script WeponBox { setarray .@Jobs$, "Shin Spear", "Shin Shuriken" , "Shin Kudachi" , "Shin Fist" , "Creator Shin Axe" , "Shin Katana" , "Shin Revolver" , "Stalker Shin Mega Bow" , "Shin Whip" , "Shin Guitar" , "Prof Shin Staff" , "Shin Katar" , "Sinx Shin Dagger" , "WS Shin Bloody Axe" , "WZ Shin Staff" , "HP Shin Reaper" , "Sniper Quincy Bow" , "SG Book"; setarray .@Items, 47001, 47002, 47003, 47004, 47005, 47006, 47007, 47008, 47010, 47011, 47012, 47014, 47015, 47016, 47017, 47018, 47019, 47020; .@size = getarraysize(.@Jobs$); for(.@i = 0; .@i < .@size; .@i++) .@menu$ = .@menu$ + .@Jobs$[.@i] + ":"; getitembound .@Items[select(.@menu$) - 1], 1, Bound_Char; end; }
its a callfunc command
or how can i make my box have a msg like this
#TIA
Edited by AinsLord2 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.