Graal Forums

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

screen_name 08-06-2002 10:49 PM

wraptext2
 
okay

here i go

im trying to get wordwrap working

NPC Code:

if (actionserverside) {
with (getplayer(screen_name)) {
wraptext2 screenwidth-95,.75,,#p(2);
for (this.i=0;this.i<tokenscount;this.i++) {
addstring client.tellthem,#t(this.i);
}
}
}




however, when i trigger the weapon, it just gives me previous tokens, from when i tokenized something else for the player



can someone please help me Xx

adam 08-07-2002 12:15 AM

Re: wraptext2
 
Quote:

Originally posted by screen_name
okay

here i go

im trying to get wordwrap working

NPC Code:

if (actionserverside) {
with (getplayer(screen_name)) {
wraptext2 screenwidth-95,.75,,#p(2);
for (this.i=0;this.i<tokenscount;this.i++) {
addstring client.tellthem,#t(this.i);
}
}
}




however, when i trigger the weapon, it just gives me previous tokens, from when i tokenized something else for the player



can someone please help me Xx

I think we need more information. o.O

where did you tokenize anything to start with?

screen_name 08-07-2002 02:26 AM

nm, i figured it out, with a little help of kaimetsu ;)

amonrabr 08-07-2002 09:03 PM

Re: wraptext2
 
wraptext2 is to write something on a image or on screen parts.. example..

wraptext2 imgwidth(door.png),1,,@Message.;
for (i=0; i<tokenscount; i++) {
showimg 202+i,@Trebuchet MS@#t(i),(screenwidth/4)-16,(screenheight/2)+(i*18)-60;
changeimgzoom 202+i,1;
changeimgvis 202+i,5;
}

It will make the tokens with the image width(door.gif) of letters..

I dont know if it works this way,anyway try:
wraptext2 screenwidth-95,.75,,@#p(2);

screen_name 08-07-2002 09:25 PM

Quote:

Originally posted by screen_name
nm, i figured it out, with a little help of kaimetsu ;)

and FYI, that wasn't what was the problem

adam 08-08-2002 11:32 AM

Re: Re: wraptext2
 
Quote:

Originally posted by amonrabr
wraptext2 is to write something on a image or on screen parts.. example..

wraptext2 imgwidth(door.png),1,,@Message.;
for (i=0; i<tokenscount; i++) {
showimg 202+i,@Trebuchet MS@#t(i),(screenwidth/4)-16,(screenheight/2)+(i*18)-60;
changeimgzoom 202+i,1;
changeimgvis 202+i,5;
}

It will make the tokens with the image width(door.gif) of letters..

I dont know if it works this way,anyway try:
wraptext2 screenwidth-95,.75,,@#p(2);

Thanx. Im glad to know this.


All times are GMT +2. The time now is 06:34 PM.

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