Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help me with this text writer (https://forums.graalonline.com/forums/showthread.php?t=21515)

Joe27hunter 01-19-2002 10:06 PM

Help me with this text writer
 
if (playerenters) {toweapons Text Writer;
}
if (strequals(#c,Text on)) {set text;
if (text) {setplayerprop#c,;
tokenize #s(server.text);
showimg 555,@verdana@#c,50,500;
changeimgvis 555,6;
changeimgzoom 555,0.65;
}
}

TDO2000 01-19-2002 10:19 PM

Re: Help me with this text writer
 
Quote:

Originally posted by Joe27hunter
if (playerenters) {toweapons Text Writer;
}
if (strequals(#c,Text on)) {set text;
if (text) {setplayerprop#c,;
tokenize #s(server.text);
showimg 555,@verdana@#c,50,500;
changeimgvis 555,6;
changeimgzoom 555,0.65;
}
}

NPC Code:

if (playerenters && !hasweapon(Text Writer)) {
toweapons Text Writer;
}
if(playerchats){
if(strequals(#c,text on)){
setplayerprop#c,;
tokenize #s(server.text);
showimg 555,@verdana@#c,50,500;
changeimgvis 555,6;
changeimgzoom 555,0.65;
}
if(strequals(#c,text off)){
hideimg 555;
}
}



could work this way, not tested

Loriel 01-20-2002 05:48 AM

"changeimgvis 555,6;"
Spiffy, when did Stefan add new layers?

amonrabr 01-20-2002 05:55 AM

Re: Re: Help me with this text writer
 
Quote:

Originally posted by TDO2000


NPC Code:

if (playerenters && !hasweapon(Text Writer)) {
toweapons Text Writer;
}
if(playerchats){
if(strequals(#c,text on)){
setplayerprop#c,;
tokenize #s(server.text);
showimg 555,@verdana@#c,50,500;
changeimgvis 555,6;
changeimgzoom 555,0.65;
}
if(strequals(#c,text off)){
hideimg 555;
}
}



could work this way, not tested

*changeimgvis 555,4;

mikepg 01-20-2002 06:28 AM

Quote:

Originally posted by Loriel
"changeimgvis 555,6;"
Spiffy, when did Stefan add new layers?

I don't think he did. every layer past 6 is similar to layer 4, but just drawn over the previous number.

ie layer 7 draws over layer 6. ;)

TDO2000 01-20-2002 07:08 AM

Re: Re: Re: Help me with this text writer
 
Quote:

Originally posted by amonrabr


*changeimgvis 555,4;

oops ^_^

royce 01-20-2002 07:15 AM

I thought it could be layered up to 10?:confused:

LiquidIce00 01-20-2002 11:57 AM

Quote:

Originally posted by Loriel
"changeimgvis 555,6;"
Spiffy, when did Stefan add new layers?

yeh I used up to like 8 i think ..


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

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