Jump to content
  • 0

Reward Item Giver NPC


uDe

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Hello guys... /ok

I want to request a script that can :

1. Only Admin (level 100) can use that NPC

2. Admin can customized the reward online.

- Which mean by using

Example :

	   	 case 1:
			next;
			mes .n$;
			mes "Ok, please input the item # to be the payment for joining the game.";
			next;
			input .@itemid;
			if (getitemname(.@itemid) == "null" || getitemname(.@itemid) == "") {next; mes .n$; mes "This item doesn't exists in the database.."; next; goto current_payment; }
			set .payitem, .@itemid;
			next;
			mes .n$;
			mes "How many "+getitemname(.payitem)+"s should players pay?";
			next;
			input .@itemamount;
			if(.@itemamount <= 0){next; mes .n$; mes "Please input a # greater than 0!"; next; goto current_payment; }
			set .payamount, .@itemamount;
			next;
			mes "So, the item payment for the entering the game:";
			mes "^008000"+.payamount+" "+getitemname(.payitem)+"s";
			next;
			goto current_payment;

That's from "Skill matching script by Viole".

- Admin can customized 5 items to be given by that NPC.

- Instead of using "getitem", I want to use "rentitem" for a week for example.

3. After finish online customizing (which is only sets what 'rentitem' should be given). Admin will recall a player (only for 1 player at a time).

4. That player will click the NPC

Bla... bla...bla.....

Here's your items..

5. After the player get the 'rentitem' and finish talking to the NPC, then the NPC will be hidden (so, the player can't get the same item again at a time).

- About this 'hidden' NPC thing, if I use :

*hideonnpc "<NPC object name>";

*hideoffnpc "<NPC object name>";

- That's mean I can't use @shownpc NPCNAME right? So, maybe just use :

*disablenpc "<NPC object name>";

*enablenpc "<NPC object name>";

*maybe* I'm not sure about this.. /??

6. For mapflag, I don't want any GM below (level 100) can warp to the map and also cannot be save at there. Only player that recalled by Admin can go there. GM also cannot use @goto PLAYERNAME or @follow PLAYERNAME

That's all I can think right now. /ok

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Thank you. But may I request the script exactly like my request above?

Or just give me the function how to make online customizing for Admin to ask NPC to give a player certain 'rentitem'.

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