Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2002, 04:23 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
string\vars in message codes

is there any way that in the near future we can do this?

NPC Code:

for (i=0;i<4;i++;){
setplayerprop #C#v(i),black;
}



to easily set clothing to all black?

or just something like that
and also

wat about message code in command: set

ie:
NPC Code:

set #co_#F_#v(x)_#v(y);


to artificialy create chests;
Reply With Quote
  #2  
Old 08-30-2002, 07:02 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Maybe "setplayerprop ##C#v(i),black;" works? dunno.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #3  
Old 08-31-2002, 01:29 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
You can setplayerprop #C0,#t(2); in the meantime. You only need 5 lines to do it that way...you can do a good old if statement.

if(i=0) setplayerprop #C0,#t(2);
else if(i=1) setplayerprop #C1,#t(2);

etc.

But yeah, that'd be handy.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #4  
Old 09-02-2002, 09:43 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
Re: string\vars in message codes

Quote:
Originally posted by Warcaptain
is there any way that in the near future we can do this?

NPC Code:

for (i=0;i<4;i++{
setplayerprop #C#v(i),black;
}



to easily set clothing to all black?

or just something like that
and also

wat about message code in command: set

ie:
NPC Code:

set #co_#F_#v(x)_#v(y);


to artificialy create chests;
lol, you and your artificial chests, lol. I'd love for them to add this, it would be usefull...but...eitherway, it can also be done with strings :-/
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #5  
Old 09-02-2002, 11:00 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Re: string\vars in message codes

Quote:
Originally posted by Warcaptain
is there any way that in the near future we can do this?

NPC Code:

for (i=0;i<4;i++{
setplayerprop #C#v(i),black;
}



to easily set clothing to all black?

or just something like that
and also

wat about message code in command: set

ie:
NPC Code:

set #co_#F_#v(x)_#v(y);


to artificialy create chests;
Ehem, I already have artifical chests

NPC Code:

//#CLIENTSIDE
// NPC made by G_Yoshi
//#EDIT chestX 0
//#EDIT chestY 0
//#EDIT level onlinestartlocal.graal
//#EDIT gralattype serveraddgreen
//#EDIT gralatimgX 0
//#EDIT gralatimgY 0
setshape 1,32,32;
if (playerenters && !client.ient#co#chestX#chestY#level) {
setimgpart dk_chest.png,0,0,32,32;
} else if (playerenters && client.#co#chestX#chestY#level){
setimgpart dk_chest.png,32,0,32,32;
}


if (playertouchsme && !client.#co#chestX#chestY#level) {
setstring server.rupeescount,1;
rupees = 1;
triggeraction 0,0,gralattype,strtofloat(server.rupeescount);
set client.#co#chestX#chestY#level;
setimgpart dk_chest.png,32,0,32,32;
this.placex=x;
this.placey=y-1;
this.placex2=x-.8;
this.placey2=y-1.8;
play dk_chest.wav;
showimg 10,dk_gralats.png,this.placex,this.placey;
changeimgpart 10,gralatimgX,gralatimgY,32,32;
changeimgvis 10,2;
showimg 11,glare1.mng,this.placex2,this.placey2;
changeimgvis 11,3;
changeimgzoom 10,2;
changeimgzoom 11,2;
for (this.i=2; this.i>1; this.i-=.05) {
changeimgzoom 10,this.i;
changeimgzoom 11,this.i;
sleep .05;
}
sleep 2;
hideimg 10;
hideimg 11;
}



actually, that is something I probably won't use anymore...care to take it if you want
__________________
Reply With Quote
  #6  
Old 09-02-2002, 11:48 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Me like! I wonder if we could also do this in the future;

putcomp #s(string),x,y;

or

setcharprop #C0,#s(string);

I think those are the ones, been awhile since I thought of that
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #7  
Old 09-02-2002, 11:52 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Re: Re: string\vars in message codes

Quote:
Originally posted by G_yoshi


Ehem, I already have artifical chests

NPC Code:

//#CLIENTSIDE
// NPC made by G_Yoshi
//#EDIT chestX 0
//#EDIT chestY 0
//#EDIT level onlinestartlocal.graal
//#EDIT gralattype serveraddgreen
//#EDIT gralatimgX 0
//#EDIT gralatimgY 0
setshape 1,32,32;
if (playerenters && !client.ient#co#chestX#chestY#level) {
setimgpart dk_chest.png,0,0,32,32;
} else if (playerenters && client.#co#chestX#chestY#level){
setimgpart dk_chest.png,32,0,32,32;
}


if (playertouchsme && !client.#co#chestX#chestY#level) {
setstring server.rupeescount,1;
rupees = 1;
triggeraction 0,0,gralattype,strtofloat(server.rupeescount);
set client.#co#chestX#chestY#level;
setimgpart dk_chest.png,32,0,32,32;
this.placex=x;
this.placey=y-1;
this.placex2=x-.8;
this.placey2=y-1.8;
play dk_chest.wav;
showimg 10,dk_gralats.png,this.placex,this.placey;
changeimgpart 10,gralatimgX,gralatimgY,32,32;
changeimgvis 10,2;
showimg 11,glare1.mng,this.placex2,this.placey2;
changeimgvis 11,3;
changeimgzoom 10,2;
changeimgzoom 11,2;
for (this.i=2; this.i>1; this.i-=.05) {
changeimgzoom 10,this.i;
changeimgzoom 11,this.i;
sleep .05;
}
sleep 2;
hideimg 10;
hideimg 11;
}



actually, that is something I probably won't use anymore...care to take it if you want
the only problem with that
is you have to change the x,y,level of every chest you lay

see i could easily do that but im trying to do an easier way out of it
Reply With Quote
  #8  
Old 09-02-2002, 01:02 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Re: Re: Re: string\vars in message codes

Quote:
Originally posted by Warcaptain


the only problem with that
is you have to change the x,y,level of every chest you lay

see i could easily do that but im trying to do an easier way out of it
no problem...actually, I did that up as a pre-fab NPC so I could easily replicate it without much difficulty
__________________
Reply With Quote
  #9  
Old 09-03-2002, 12:15 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Re: Re: Re: Re: string\vars in message codes

Quote:
Originally posted by G_yoshi


no problem...actually, I did that up as a pre-fab NPC so I could easily replicate it without much difficulty

well even that npc you sent me didnt work.
Reply With Quote
  #10  
Old 09-03-2002, 12:19 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Re: Re: Re: Re: Re: string\vars in message codes

Quote:
Originally posted by Warcaptain



well even that npc you sent me didnt work.
Didn't add the rupee?

Because it does it serverside
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:58 PM.


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