Thread: Shops?
View Single Post
  #3  
Old 11-28-2001, 04:38 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
okay

im not gonna tell you the script, but ill give you some pointers and basic info, since you are obviously very new.

you will need to learn how to use these variables:

#c, (the string that is determined by the players chat text)
playerrupees, which is how many gelet, gralet, rupees, what ever you want to call them, that the player has

the strequals command/flag
setplayerprop command.

So, lets use all of these, to make an example of how each work

if (strequals(#c,happy duck) {
playerrupees=99; setplayerprop #c,VERY happy duck;
}

So, this is when the player's chat text is "happy duck", the players money (playerrupees) is set to 99, and his chat text is set to "VERY happy duck"

if you want to make sure that the player has enough money

if (playerrupees>=5) {
}

that checks to see if the player has or has more than 5 rupees.

>= means greater than or equal to. other signs: = equal, > greater than, < less than, <= less than or equal to, != not equal

that should help somewhat if you can digest it. If you cannot, either im not very good at explaning, or you probably wont pick up scripting.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote