Jump to content
  • 0

Random Price NPC


skipjack94

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  08/27/12
  • Last Seen:  

i can someone help me to script?
i want make a npc like

every hour the price of apples will change

and gm can set up price

 

Apple [Price 2000] on at 3 o'clock

changed to

Apple [Price 5000] on at 4 o'clock

 

gm can set up the distance between the prices at random

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

I actually like the idea. Gonna follow this! 

It's better if there's player limit that can buy those apples on sale. FTW!  /ok

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

I actually like the idea. Gonna follow this! 

It's better if there's player limit that can buy those apples on sale. FTW!  /ok

Ive already done this however I'm not releasing as its an ugly mess of a script,

 

 

this what you want?

prontera,164,175,3	shop	Apple-Lady	123,512:-1

	
prontera,165,174,3	script	ShopEditor	123,{
	message strcharinfo(0),"Hi~";
	if(getgroupid() >= 60) end;
	message strcharinfo(0),"How much Should Apples cost?";
	input(.@i,1,1000000);
	npcshopitem "Apple-Lady",512,.@i;
	end;
OnMinute01:
OnMinute16:
OnMinute31:
OnMinute46:
npcshopitem "Apple-Lady",512,rand(12,25);
}
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...