Jump to content
  • 0

R> Weapon Ticket


DairyPresto

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   1
  • Joined:  04/03/17
  • Last Seen:  

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!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  11/14/17
  • Last Seen:  

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"; },{},{}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   1
  • Joined:  04/03/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  11/14/17
  • Last Seen:  

Can you post the error

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