• 0
AinsLord

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 [email protected]$, "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 [email protected], 47001, 47002, 47003, 47004, 47005, 47006, 47007, 47008, 47010, 47011, 47012, 47014, 47015, 47016, 47017, 47018, 47019, 47020;

	[email protected] = getarraysize([email protected]$);
	for([email protected] = 0; [email protected] < [email protected]; [email protected]++)
		[email protected]$ = [email protected]$ + [email protected]$[[email protected]] + ":";
	getitembound [email protected][select([email protected]$) - 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

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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)

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now