Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Bad Commands (https://forums.graalonline.com/forums/showthread.php?t=41794)

Ethic_Sern 01-07-2003 12:42 AM

Bad Commands
 
Stefan:
there are ton of commands that still dont work... commands such as setsword something as simple as that... a command most RP servers use doesnt work clientside or serverside please fix.

draygin 01-07-2003 01:02 AM

Re: Bad Commands
 
Quote:

Originally posted by Ethic_Sern
Stefan:
there are ton of commands that still dont work... commands such as setsword something as simple as that... a command most RP servers use doesnt work clientside or serverside please fix.

setsword has always worked for me. :) Are you sure you're using it correctly?

tlf288 01-07-2003 01:19 AM

Re: Bad Commands
 
Quote:

Originally posted by Ethic_Sern
Stefan:
there are ton of commands that still dont work... commands such as setsword something as simple as that... a command most RP servers use doesnt work clientside or serverside please fix.

Why did you not post this in the NPC Scripting forum or the bugs forum?

Loriel 01-07-2003 01:51 AM

Re: Re: Bad Commands
 
Quote:

Originally posted by draygin
setsword has always worked for me. :) Are you sure you're using it correctly?
He is talking about the script command, not the chat command.

And, I suggest, you just rescript it, lazy person :)

Python523 01-07-2003 07:05 AM

Re: Re: Re: Bad Commands
 
Quote:

Originally posted by Loriel

He is talking about the script command, not the chat command.

And, I suggest, you just rescript it, lazy person :)

i agree 100% if not more

Python523 01-07-2003 07:42 AM

Re: Re: Re: Re: Re: Bad Commands
 
Quote:

Originally posted by Kill3r


How can you agree more than 100% if you're only one person posting on that account?

...it's an expression
*feels his IQ lowering after seeing the above post*
*sighs*

draygin 01-07-2003 07:45 AM

Re: Re: Re: Bad Commands
 
Quote:

Originally posted by Loriel

He is talking about the script command, not the chat command.

And, I suggest, you just rescript it, lazy person :)

wait you're right. I was thinking of something like if player #c or something another then the words setsword not the same thing though as the actual command setsword. But its been about 2 years since I had made a script using that. :P

Ghost Pirate 01-07-2003 07:47 AM

Re: Re: Re: Re: Re: Bad Commands
 
Quote:

Originally posted by Kill3r


How can you agree more than 100% if you're only one person posting on that account?

How can you not agree more than 100%?

I mean I agree 3048%.

Loriel 01-07-2003 03:28 PM

Hey mod people, would it be okay to post a rescripted sword here?

Jeff 01-07-2003 05:00 PM

Hint to the poor soul who started this:


Use setplayerprop.

Tseng 01-07-2003 05:17 PM

Re: Re: Re: Re: Re: Bad Commands
 
Quote:

Originally posted by Kill3r


How can you agree more than 100% if you're only one person posting on that account?

Well (speaking of IQs), Killer, if your IQ had been positive instead of negative, you might have understood that as Jagen said, it's an expression.

Ethic_Sern 01-08-2003 12:43 AM

and not for the swordimg..... for the sword power!

Falcor 01-08-2003 01:12 AM

setplayerprop #1,swordimage;

Tseng 01-08-2003 01:42 AM

And if you want to get really fancy and change the swordpower, you can use the playerswordpower variable.

Ethic_Sern 01-08-2003 01:46 AM

i did rescript it see
//#CLIENTSIDE
if (created||initialized){
timeout=0.05;
setstring clientr.swordimg,#1();
setstring client.swordpower,#v(playerswordpower);
}
if (keypressed) {
if (strequals(#p(1),1)) {
triggeraction playerx+1.5+vecx(playerdir)*2,playery+2+vecy(playe rdir)*2,swordhit,#a;
freezeplayer 0.25;
setani sword2,clientr.swordimg;
}
timeout=0.1;
}

if (actionswordhit) {
if (!strequals(#m,dead)){
freezeplayer .3;
setani hurt,;
hearts=strtofloat(#I(client.hp,0))-strtofloat(#s(client.swordpower));
replacestring client.hp,0,#v(hearts);
}
}
OR i have this one
//#CLIENTSIDE
if(created){
this.firing=0;
}
if (keydown2(keycode(g),true)){
this.firing=1;
this.p = players[0].swordpower;
this.q = this.p;
play sword.wav;
for (this.i=9;this.i<14; this.i++){
freezeplayer 1;
players[0].sprite=this.i;
testhurt();
sleep .05;
}
freezeplayer 0;
this.firing=0;
}
function testhurt()
for (this.a=1;this.a<playerscount;this.a++)
{if (abs(players[0].x-players[this.a].x)<3 && abs(players[0].y-players[this.a].y)<3)
hitplayer this.a,this.q,players[this.a].x,players[this.a].y;}
for (this.b=0;this.b<compuscount;this.b++)
{if (abs(compus[0].x-compus[this.b].x)<3 && abs(compus[0].y-compus[this.b].y)<3)
hitcompu this.b,this.q,compus[this.b].x,compus[this.b].y;}
return;

all iam saing is that if he going to make commands they should work x_x


All times are GMT +2. The time now is 05:30 PM.

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