Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Suggested commands? (https://forums.graalonline.com/forums/showthread.php?t=48836)

xManiamaNx 11-25-2003 07:03 AM

Quote:

Originally posted by ForgottenLegacy
However, commands like showtext, allthough necessary, were just added to promote lazyness. I hope you understand now. (Do not remove 'showtext'! I use it all the time!)
I like the showimg 1,@@@ stuff better, because it actually works serverside with an ID < 100. I've tried showtext serverside with an ID < 100, and it doesn't work.

Lance 11-25-2003 07:15 AM

Quote:

Originally posted by ForgottenLegacy
I would like to see the code, Lance, so I can see how you guys do it. Is it the same code you used on the old Graal 2002 bows? Where you click and the arrow lands where you clicked?
I said "can be" not "I have." It's unnecessary to do so, thus I haven't. And, no, while such things may use the shoot command, what you speak of is extra stuff added to it.

Quote:

Originally posted by xManiamaNx


I like the showimg 1,@@@ stuff better, because it actually works serverside with an ID < 100. I've tried showtext serverside with an ID < 100, and it doesn't work.

In what are you showing such text?

Hevaricubed 11-26-2003 04:46 AM

lol lazyness.

for(i=0;i<10;i++;) {

}

==

i=0;
while (i<10) {

i++;
}

you think not?

Hit F6.

Lance 11-26-2003 04:49 AM

Quote:

Originally posted by Hevaricubed
lol lazyness.

for(i=0;i<10;i++;) {

}

==

i=0;
while (i<10) {

i++;
}

you think not?

Hit F6.

You're missing the point. Some people are requesting commands for things which can easily be scripted, just so they don't have to script it themselves. There's a difference between a time-saving command and one which is incarnated just because of someone's laziness. In other words, they're asking for something that they'll only use once or twice, not a script command which would come into use frequently.

Hevaricubed 11-26-2003 05:14 AM

Re: Suggested commands?
 
The rotate commands are very good ideas, and i doubt they are original ideas.
They will probally be introduced in this new scripting language ive been hearing about.

napo_p2p 12-04-2003 05:41 AM

replacestring2 list,text,text;

replaces the string at position 'index' with 'text'

Or is there one o_O?

Lance 12-04-2003 05:43 AM

Quote:

Originally posted by napo_p2p
replacestring2 list,text,text;

replaces the string at position 'index' with 'text'

Or is there one o_O?

You listed two text params, yet only defined one in your explanation.

What you explained is actually the replacestring command.

It seems like you want to modify a substring of a member of a string list. Is this correct? If so, just use #e o_O

napo_p2p 12-05-2003 06:49 AM

Quote:

Originally posted by Lance


You listed two text params, yet only defined one in your explanation.

What you explained is actually the replacestring command.

It seems like you want to modify a substring of a member of a string list. Is this correct? If so, just use #e o_O

sorry i meant to say
replaces the string 'text' with new 'text'

I can use #e. I guess this command would just promote laziness ....

Riot 12-05-2003 07:23 AM

Quote:

Originally posted by napo_p2p


sorry i meant to say
replaces the string 'text' with new 'text'

I can use #e. I guess this command would just promote laziness ....

You don't need #e:

setstring this.array,a,b,c,def;
this.replace = lindexof(c, this.array);
replacestring this.array,this.replace,replaced;

would replace "c" with "replaced" making this.array = a,b,replaced,def

Lance 12-05-2003 08:15 AM

Quote:

Originally posted by Riot

You don't need #e

Reading is apparently underrated, man, as I said #e would work if he was trying to replace part of a string in a string list, not a whole string.

Riot 12-06-2003 10:22 PM

Quote:

Originally posted by Lance


Reading is apparently underrated, man, as I said #e would work if he was trying to replace part of a string in a string list, not a whole string.

I was under the impression that he wanted to replace "text" with "new text" in a string list. Which is what I gave him.

Sorry if I misunderstood.

KuJiGX 12-07-2003 06:26 PM

Well they should have a disablesword command. But not needed as i found a way to disable sword myself :-)
http://forums.graal2001.com/forums/s...threadid=49531 <---


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

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