|
N-Pulse Assistant Manager
|
 |
Join Date: Mar 2005
Posts: 2,180
|
|
Yeah, I've figured that the nick display gani stops showing when you go into the overworld, even if you come back into another level.
This is what I have for that script:
PHP Code:
function onPlayerEnters() { this.nick = ""; this.guild = ""; onTimeOut(); } function onTimeOut() { if (!clientr.stealth) { if (this.nick != player.attr[10] || this.guild != player.attr[11]) updateNick(); for (i=0; i<4; i++) { changeimgcolors(200+i, player.attr[17], player.attr[18], player.attr[19], .8); changeimgzoom(200+i, this.size); } changeimgcolors(202, 0, 0, 0, .3); changeimgcolors(203, 0, 0, 0, .3); } else hideimgs(200,203); if (this.font != player.attr[21] || this.style != player.attr[22] || this.size != player.attr[23]) updateNick(); setTimer(0.05); } function updateNick() { hideimgs(200,203); this.font = player.attr[21]; this.style = player.attr[22]; this.size = player.attr[23]; this.nick = player.attr[10]; this.guild = player.attr[11]; temp.n = this.nick.tokenize("("); temp.width1 = gettextwidth(this.size, this.font, this.style, temp.n[0])/16; temp.width2 = gettextwidth(this.size, this.font, this.style, this.guild)/16; showtext(200, player.x+1.5-(temp.width1/2), player.y+3, this.font, this.style, temp.n[0]); showtext(201, player.x+1.5-(temp.width2/2), player.y+3.75, this.font, this.style, this.guild); showtext(202, player.x+1.5+(1/8)-(temp.width1/2), player.y+3+(1/8), this.font, this.style, temp.n[0]); showtext(203, player.x+1.5+(1/8)-(temp.width2/2), player.y+3.75+(1/8), this.font, this.style, this.guild); for (i=0; i<4; i++) { changeimgcolors(200+i, player.attr[17], player.attr[18], player.attr[19], .85); changeimgzoom(200+i, this.size); findImg(200+i).attachtoowner = true; } changeimgcolors(202, 0, 0, 0, .85); changeimgcolors(203, 0, 0, 0, .85); findImg(200).layer++; findImg(201).layer++; }
Also, my heart display keeps turning black at random times, and I can't really figure out why...
PHP Code:
function onCreated() { showimg(200, "mal_heartanim.gif", (player.x + 0.5)%64, (player.y - 2)%64); setTimer(0.05); } function onPlayerEnters() { showimg(200, "mal_heartanim.gif", (player.x + 0.5)%64, (player.y - 2)%64); setTimer(0.05); } function onTimeout() { findimg(200).x = player.x + 0.5; findimg(200).y = player.y - 2;
temp.healthcheck = player.attr[4]*100;
findimg(200).x = player.x + 0.5; findimg(200).y = player.y - 2; if (temp.healthcheck in |96, 100|) temp.colors = {0,1}; else if (temp.healthcheck in |91, 95|) temp.colors = {.05,.95}; else if (temp.healthcheck in |86, 90|) temp.colors = {.1,.9}; else if (temp.healthcheck in |81, 85|) temp.colors = {.15,.85}; else if (temp.healthcheck in |76, 80|) temp.colors = {.2,.8}; else if (temp.healthcheck in |71, 75|) temp.colors = {.25,.75}; else if (temp.healthcheck in |66, 70|) temp.colors = {.3,.7}; else if (temp.healthcheck in |61, 65|) temp.colors = {.35,.65}; else if (temp.healthcheck in |56, 60|) temp.colors = {.4,.6}; else if (temp.healthcheck in |51, 55|) temp.colors = {.45,.55}; else if (temp.healthcheck in |46, 50|) temp.colors = {.5,.5}; else if (temp.healthcheck in |41, 45|) temp.colors = {.55,.45}; else if (temp.healthcheck in |36, 40|) temp.colors = {.6,.4}; else if (temp.healthcheck in |31, 35|) temp.colors = {.65,.35}; else if (temp.healthcheck in |26, 30|) temp.colors = {.7,.3}; else if (temp.healthcheck in |21, 25|) temp.colors = {.75,.25}; else if (temp.healthcheck in |16, 20|) temp.colors = {.8,.2}; else if (temp.healthcheck in |11, 15|) temp.colors = {.85,.15}; else if (temp.healthcheck in |6, 10|) temp.colors = {.9,.1}; else if (temp.healthcheck in |1, 5|) temp.colors = {.95,.05}; findImg(200).red = temp.colors[0]; findImg(200).green = temp.colors[1]; findImg(200).blue = 0; setTimer(0.05); }
|
__________________
Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
|
|
|