Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I have a question. (https://forums.graalonline.com/forums/showthread.php?t=7509)

Silver Knight 07-18-2001 12:47 AM

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,

grim_squeaker_x 07-18-2001 12:57 AM

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;
}
}


Silver Knight 07-18-2001 01:03 AM

Thank you so much. Too bad that your probaly not willing to be NAT or anything...But, Thanks again.

SkooL 07-18-2001 01:06 AM

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.

Silver Knight 07-18-2001 01:10 AM

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.

SkooL 07-18-2001 01:12 AM

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.

Silver Knight 07-18-2001 01:15 AM

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.

SkooL 07-18-2001 01:22 AM

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.

SkooL 07-18-2001 01:24 AM

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.

Silver Knight 07-18-2001 01:25 AM

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.


All times are GMT +2. The time now is 03:31 AM.

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