Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   help me out please... (https://forums.graalonline.com/forums/showthread.php?t=9407)

08-12-2001 10:49 AM

help me out please...
 
how can i make this code show more words when you speak..?
and how do you get it excactly nice above your head like when you speak normal in graal without this code?
please help me out,
thanks.


NPC Code:
// NPC made by Yakuzo
if (playerchats) {
tokenize #c;
timeout=0.05;
showimg 0,@Dancin LET@bi@#t(),playerx,playery-1;
setplayerprop #c,;
}
if (timeout) {
showimg 0,@Dancin LET@bi@#t(),playerx,playery-1;
timeout=0.05;
}


LiquidIce00 08-12-2001 10:54 AM

plz dont hurt urself
use
setcharprop #c,Dancing!;
u dont really wanna use showimg with text stuff unless its for a npc or something.

08-12-2001 11:03 AM

Quote:

Originally posted by LiquidIce00
plz dont hurt urself
use
setcharprop #c,Dancing!;
u dont really wanna use showimg with text stuff unless its for a npc or something.

Yes i do want to use showimg and stuff, cause I want to replace the text with a nicer font...
if you don't want to help or something then rather don't say anything at all...(counts for all of you who's out there and wants to go spam or critize a thread)

LiquidIce00 08-12-2001 12:51 PM

then u could of said that o.o
well my best tip is dont use showimg like i said but if u do want it ..
then u gotta make a little math thingy..
it still wont be as the real chat of the player but like you are doing it wont be hard to be nice. just take away some x's and it should center it out ..

Brady2 08-12-2001 01:14 PM

Jadis:
NPC Code:

if (playerchats) {
setstring chatdude,#c;
setplayerprop #c,;
showimg 0,@Dancin LET@c@#s(chatdude),playerx+1.5-strlen(#s(chatdude))/2,playery-3;
timeout = .05;
this.1 = 0;
}
if (timeout) {
if (this.1<60) {
showimg 0,@Dancin LET@c@#s(chatdude),playerx+1.5-strlen(#s(chatdude))/2,playery-3;
timeout = .05;
this.1++;
} else hideimg 0;
}



Had a lot of bugs :(

BocoC 08-12-2001 01:15 PM

NPC Code:

if (playerchats) {
setstring this.chat,#c;
showimg 0,@Dancin LET@bic@#s(this.chat),playerx+1.5,playery-1;
setplayerprop #c,;
this.counter=0;
timeout=0.05;
}
if (timeout) {
if (this.counter>3) {
hideimg 0;
timeout=0;
} else {
this.counter+=0.05;
showimg 0,@Dancin LET@bic@#s(this.chat),playerx+1.5,playery-1;
timeout=0.05;
}
}


There. That works perfectly.

08-12-2001 01:25 PM

makes sense...
the only tihng is i never use else
so thats probably the reason why i didn't come up with that...
now I think of it its stupid of me of using tokenize instead of variables....oh well, guess we're all human and humans makes mistakes

SaijinGohan 08-23-2001 02:02 AM

*looks with great awe and wonder of the scripts which he cannot understand*:eek: :eek: :eek:

IceHawk 08-23-2001 02:04 AM

Quote:

Originally posted by SaijinGohan
*looks with great awe and wonder of the scripts which he cannot understand*:eek: :eek: :eek:
*looks with great disgust at your account name*

nyghtGT 08-23-2001 08:33 AM

bocos works
 
boco's works
http://www.deceptiononline.f2s.com/nyghtdoll.gif


All times are GMT +2. The time now is 12:30 AM.

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