Jump to content
  • 0

Welcome Package/Item


Cephaler

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

Hey guys I tried searching a npc similar to it but couldn't find.

So the idea is: I'd like when the players log in ( if that can't be made, then when they click on the NPC ) they'd select an item from a list, BUT that would be one item per ACCOUNT to avoid exploitation/creating multiple accounts/chars and therefore get all the items.

Thanks again!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

Hey Darristan, thanks! What if I want to add this same idea to a npc instead?

I'd like to make it so they can select one item from a list of about 6 items which one they wanted ( account based )

Thanks

Thank you so much!

Edited by Cephaler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Change to header

- script Freebie 1,{

to

map,x,y,face script NpcName sprite,{

and remove the OnPCLoginEvent:

Edited by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

That is great, thanks so much for help!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

 

the getitem <item_id>, <quantity>;

 

it can be  -->

getitem <item_id>, <quantity>,<item_id>, <quantity>,<item_id>, <quantity>,<item_id>, <quantity>,<item_id>, <quantity>;

 

right ?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

getitem only accept 2 arguments +1 optionnal

BUILDIN_DEF(getitem,"vi?"),

it must be

getitem <item_id>, <quantity>;
getitem <item_id>, <quantity>;
getitem <item_id>, <quantity>;
...

I made a custom getmultiitem like that long time ago, but can't find it...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  270
  • Reputation:   20
  • Joined:  12/10/11
  • Last Seen:  

 

the getitem <item_id>, <quantity>;

 

it can be  -->

getitem <item_id>, <quantity>,<item_id>, <quantity>,<item_id>, <quantity>,<item_id>, <quantity>,<item_id>, <quantity>;

 

right ?

 

 

Another way you can do this is take some time to make a custom item gift box for your server. That way you only need to use getitem script once. Once they double click the box, it gets all the desired items you put in there. I think it looks much better too aesthetically

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   2
  • Joined:  02/15/14
  • Last Seen:  

How to make this script IP check yea? Does it need to do something like executing sql? hopefully can just edit the script. Anyone guys? Hmmmmmmmmmm

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