Jump to content
  • 0

Question

Posted

Hello guys! i need an item usable script when player click message appear "Hello please choose your desire weapon you want" next > and category choose >weapon1,weapon2,weapon3,weapon4,weapon5,weapon6,weapon7,weapon8,weapon9,weapon10, > all category is +7 weapon getitem2 :) thank you. 




Sorry for my bad english!

3 answers to this question

Recommended Posts

  • 0
Posted

You mean usable item but works like an npc ?

Upload this script.

Add weapon selection ? Follow the pattern of the script

function	script	RandWeapon	{
	mes "Choose the desired weapon you want";
	switch(select("Weapon1:Weapon2")) {
      case 1:
        getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<Account ID>}; // Account ID set it to 0
        end;
      case 2:
        getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<Account ID>}; // Account ID set it to 0
        end;
    }
}


item_db
- Put this on the usable item

{ callfunc "RandWeapon"; },{},{}

 

  • 0
Posted
1 hour ago, Azrael- said:

You mean usable item but works like an npc ?

Upload this script.

Add weapon selection ? Follow the pattern of the script


function	script	RandWeapon	{
	mes "Choose the desired weapon you want";
	switch(select("Weapon1:Weapon2")) {
      case 1:
        getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<Account ID>}; // Account ID set it to 0
        end;
      case 2:
        getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<Account ID>}; // Account ID set it to 0
        end;
    }
}


item_db
- Put this on the usable item


{ callfunc "RandWeapon"; },{},{}

 

Yay! Thank you for fast reply. i got an error i think i got error on some spacing.. can you please redo it on pastebin plss :P

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