Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-18-2001, 12:47 AM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
I have a question.

For my PW, I wanted to create a 'Trade route' system. Nation can buy/take over trade routes, and set a tax for passing through. Trading through Trade Routes will play an important part in the server, as Traders sell goods to merchants, so that merchants can stock their stores.
I was having problem with the setting tax. I was wondering if anyone would be so kind as to teach me the commands needed to make it work. Stuff like when the playersays "Raise Taxes, 100" it would set the tax to pass through to 100g.
I'm not NAT or anything, but trying to get this done before friday. I would have my Head NAT script it, but he is grounded .

Thanks,
__________________
Reply With Quote
  #2  
Old 07-18-2001, 12:57 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
NPC Code:
if (created) this.roadid=0; //Change for each road
if (playerchats) {
tokenize #c;
if (startswith(raise taxes,#c)&&tokenscount==3) {
setstring server.road#v(this.roadid)tax,#v(int(strtofloat(#t (2))));
setplayerprop #c,The tax has been set to #s(server.road#v(this.roadid)tax) gralats;
}
}

__________________

Reply With Quote
  #3  
Old 07-18-2001, 01:03 AM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
Thank you so much. Too bad that your probaly not willing to be NAT or anything...But, Thanks again.
__________________
Reply With Quote
  #4  
Old 07-18-2001, 01:06 AM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by Silver Knight
Too bad that your probaly not willing to be NAT or anything...
I hate when people try to use guilt to get something they want.
__________________
the sky is falling
Reply With Quote
  #5  
Old 07-18-2001, 01:10 AM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
I wasn't trying to use guilt, it was merely an indirect way to put the idea in her head with the impression that everything script related is in total chaos and that she is the only one that can fix it because she is an extremely good scripter and would work wonders for a PW such as mine.
__________________
Reply With Quote
  #6  
Old 07-18-2001, 01:12 AM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by Silver Knight
I wasn't trying to use guilt, it was merely an indirect way to put the idea in her head with the impression that everything script related is in total chaos and that she is the only one that can fix it because she is an extremely good scripter and would work wonders for a PW such as mine.
And yet more guilt. "You're the only one who can save us" sounds like guilt to me.
__________________
the sky is falling
Reply With Quote
  #7  
Old 07-18-2001, 01:15 AM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
I was just trying to say that she is a really good scripter, and that someone of her skill level would be a great asset on a server. And now your trying to make me look bad so you can take Lady Midnight's awesome scripting abilities and use them for your server.
__________________
Reply With Quote
  #8  
Old 07-18-2001, 01:22 AM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by Silver Knight
I was just trying to say that she is a really good scripter, and that someone of her skill level would be a great asset on a server. And now your trying to make me look bad so you can take Lady Midnight's awesome scripting abilities and use them for your server.
She works for X Online already, kthxbai.
__________________
the sky is falling
Reply With Quote
  #9  
Old 07-18-2001, 01:24 AM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by Silver Knight
I was just trying to say that she is a really good scripter, and that someone of her skill level would be a great asset on a server. And now your trying to make me look bad so you can take Lady Midnight's awesome scripting abilities and use them for your server.
And yes, saying that she is the only one who can save your server is putting guilt down. Your basically saying that if she rejects your offer, your PW will fail.
__________________
the sky is falling
Reply With Quote
  #10  
Old 07-18-2001, 01:25 AM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
Maybe it will fail if she rejects my offer....Maybe it won't. Depends if my Head NAT ever get's off of being grounded.
__________________
Reply With Quote
Reply


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 11:30 PM.


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