Quote:
Originally posted by mhermher
NPC Code:
if (playerchats&&strequals(#c,buy regular beer)) {
if (playerrupees >=5){
playerrupees -=5;
set ybeershow;
} else if (playerrupees<5) { < This "else if()" is not needed,just else would work fine...
say2 You need more money. < You forget to put a ";" here
}
|
This would be better..=)
NPC Code:
if (playerchats&&strequals(#c,buy regular beer)){
if (playerrupees >=5){
playerrupees -=5; set ybeershow; < I dont think this set is needed..but x.x'
} else
say2 You need at least 5 gralats;
}