|
Banned
|
Join Date: May 2004
Location: Burning Blade
Posts: 941
|
|
Maybe this will end the thread.
NPC Code:
if (actionserverside) {
setstring clientr.#s(client.element)power,#s(server.#s(clien t.element)power);
setstring clientr.#s(client.element)size,#s(server.#s(client .element)size);
setstring clientr.#s(client.element)allies,#s(server.#s(clie nt.element)allies);
setstring clientr.#s(client.element)enemies,#s(server.#s(cli ent.element)enemies);
}
//#CLIENTSIDE
// Initialize
if (created||playerenters||keypressed) {triggeraction 0,0,serverside,-GUI;this.alpha=1;}
while (isweapon) {
// Hide normal GUI
showstats 1024;
// Show stuff
showimg 250,cythusgui.gif,0,0;
changeimgcolors 250,1,1,1,this.alpha;
showimg 251,@TimesRoman@@#s(client.hp) / #s(client.maxhp),38.5,10;
showimg 252,@TimesRoman@@#v(playermp) / 100 ,36.4,25.9;
showimg 253,#W,149,5;
showtext 254,63,82,verdana,l,#w;
showimg 255,@TimesRoman@@#v(strtofloat(#s(client.tokens))) ,38.5,40.3;
showtext 259,5.4,55.3,verdana,b,Exp: #v(strtofloat(#s(client.playerexp)));
showtext 301,6,67.1,arial,b, Pwr: #v(strtofloat(#s(client.playerpower)));
// Layers
this.layers = {6,7,8,7,8,8,9};
for (i=0;i<arraylen(this.layers);i++) {
changeimgvis 250+i,this.layers[i];
}
changeimgvis 301,9;
// Zoom
this.zooms = {.6,.6,.55,.6,.6};
for (i=0;i<arraylen(this.layers);i++) {
changeimgvis 251+i,this.layers[i];
}
changeimgzoom 301,.65;
// Colors
changeimgcolors 251,0,0,0,1;
changeimgcolors 252,0,0,0,1;
changeimgcolors 254,.1,.1,.1,1;
changeimgcolors 255,.1,.1,.1,1;
changeimgcolors 259,0,0,0,1;
changeimgcolors 301,0,0,0,1;
// Part
changeimgpart 253,0,0,270,160;
// Stuff to show
showtext 8675309,79,115,timesRoman,c,x #v(playerrupees);
showimg 86753010,greenrupee.png,20,105;
showpoly 79999,{148,5,193,5};
showpoly 79998,{148,5,148,45};
showpoly 79997,{148,45,193,45};
showpoly 79996,{193,5,193,45};
showtext 79995,160,52,verdana,,Drop;
// Colors
for (i=0;i<5;i++) {
changeimgcolors 79995+i,0,0,0,1;
}
changeimgcolors 8675309,0,1,0,1;
// Vis
for (i=0;i<5;i++) {
changeimgvis 79995,(18-i);
}
changeimgvis 8675309,8;
changeimgvis 86753010,8;
// Zoom
changeimgzoom 79995,.5;
changeimgzoom 8675309,.9;
//Kingdom info
// Show the stuff
showpoly 9999,{screenwidth-110,screenheight*0,screenwidth-1,screenheight*0,screenwidth-1,(screenheight*0)+100,screenwidth-110,(screenheight*0)+100};
showpoly 9998,{screenwidth-105,(screenheight-=1)+5,screenwidth-6,(screenheight-=1)+5,screenwidth-6,(screenheight-=1)+95,screenwidth-105,(screenheight-=1)+95};
showpoly 10009,{screenwidth-107.5,(screenheight-=1)+3,screenwidth-3.5,(screenheight-=1)+3,screenwidth-3.5,(screenheight-=1)+97.5,screenwidth-107.5,(screenheight-=1)+97.5};
showtext 9997,screenwidth-104,15,Verdana,l,Your Kingdom:#s(client.element);
showtext 9996,screenwidth-104,25,Verdana,l,Kingdom Power:#s(clientr.#s(client.element)power);
showtext 9995,screenwidth-104,35,Verdana,l,Kingdom Size:#s(clientr.#s(client.element)size);
showtext 9994,screenwidth-55,50,Verdana,c,=Allies=;
showtext 9993,screenwidth-55,60,Verdana,c,#s(clientr.#s(client.element)allie s);
showtext 9992,screenwidth-55,70,Verdana,c,=Enemies=;
showtext 9991,screenwidth-55,80,Verdana,c,#s(clientr.#s(client.element)enemi es);
// Gray text
changeimgcolors 10009,.55,.55,.55,this.alpha;
changeimgcolors 9999,.5,.5,.5,this.alpha;
changeimgcolors 9998,.6,.6,.6,this.alpha;
// Change layers
changeimgvis 10009,5;
changeimgvis 9999,4;
changeimgvis 9998,6;
// Make text look alike
for (i=0;i<7;i++) {
changeimgvis 9990+i,7;
changeimgcolors 9990+i,0,0,0,this.alpha;
changeimgzoom 9990+i,.5;
}
// Stop uber lag
sleep .05;
}
Anyone else notice that one of his indexes (8675309) is a song? A bad one if I may add... |
Last edited by Slash-P2P; 09-27-2004 at 05:58 AM..
|