Jump to content
  • 0

About Usable Freebies box call func || box disappear when cancel


Question

Posted (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

 

5aba6ed40eb58_screenFunRagnarokOnline009.jpg.d635c373dbac4e358ccac4e09125a4bd.jpg

#TIA

Edited by AinsLord
  • Upvote 1

2 answers to this question

Recommended Posts

  • 0
Posted

Instead of using select... use prompt

Catch the 255 response as "cancel / closed" and give the box back to the player :D

Regarding the menu they have there, that seems to be a custom client menu (no idea)

  • 0
Posted

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.

 

  • Like 1

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