Thread: Selling Srings
View Single Post
  #17  
Old 10-23-2001, 08:00 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Ok it works, but there is a slight error. Every other time I say sell lumber and I have no lumber... It says sold 1 log adn gives me 1 rupee. Heres what I have.

// Created By Rob Getashu
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.gif;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
}
if (playerchats&&strequals(#c,sell lumber)) {
playerrupees=playerrupees+strtofloat(#s(lumber));
setstring server.gavelumber,strtofloat(#s(client.lumber));
setstring client.lumber,;
say2 You sold #s(lumber) logs.;
setstring lumber,#v(strtofloat(#s(lumber))=0)
}
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote