Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-09-2001, 06:42 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
Exclamation Strings and Var!

I need help on this! It won't work!

// 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)) {
this.lumber = strtofloat(#v(client.lumber);
playerrupees+=this.lumber;
setstring client.lumber,;
setstring server.gavelumber,#v(this.lumber);
setplayerprop #c,You sold #v(this.lumber) logs;
lumber = strtofloat(#s(lumber))=0;
}



// Created By Rob Getashu
if (created) {
showcharacter;
setcharani appletree4,
}
if (actionlumberjacking && this.lumberhit<=100){
this.lumberhit++;
message #v(this.lumberhit/100*100)%
}
if (this.lumberhit=20) {
setcharani appletreecut,
}
if (this.lumberhit=100) {
setstring lumber,#v(strtofloat(#s(lumber))+3);
setani lumber,;
sleep .5;
hide;
say2
Wow this is valueable #b
lumber!#b
You now have #s(lumber).;
this.lumberhit=0
}
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #2  
Old 10-09-2001, 07:38 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

You're missing a ) in there in one place... and I'm to tired to point out/find anything more...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #3  
Old 10-09-2001, 07:42 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
heres what the character guy should be:

NPC Code:

if (playerchats&&strequals(#c,sell lumber)) {
players[0].rupees+=strtofloat(#s(client.lumber);
setstring client.lumber,;
setstring server.gavelumber,strtofloat(#s(client.lumber); setplayerprop #c,You sold #s(client.lumber) logs.;
}




you use #s for strings, you dont need to use this.lumber, what was that last line for anyway, you should use players[0].rupees

ill work on the other one soon
Reply With Quote
  #4  
Old 10-10-2001, 02:36 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
thanks
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #5  
Old 10-10-2001, 02:44 AM
Link188 Link188 is offline
Registered User
Link188's Avatar
Join Date: Jul 2001
Location: Monroeville, PA
Posts: 548
Link188 is on a distinguished road
Send a message via AIM to Link188
There now finish the Lumberjacking and send it to me! Thank you by the way guys!
__________________
~Jeice Lighthawk~
"And you will shed tears of scarlet..."

~Edited by me. ^_^
Reply With Quote
  #6  
Old 10-10-2001, 02:46 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
Quote:
Originally posted by Link188
There now finish the Lumberjacking and send it to me! Thank you by the way guys!
It mine and whats with you adn the ^_^ all the time!
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #7  
Old 10-10-2001, 06:56 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
to me it looks like the tree cutting part would work just the way it is
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.