![]() |
Spar House Script
I made somthing for my server called Spar World. It came out nice but I am owner, not a NAT and I do not know how to make it so when either fighter says start, it shows a door.gif so no one can leave and no one from outside can enter because door is blocked off. I guess this would use a server flag but im not sure how to do that. Anyone got any ideas???
|
WHOA! Thats a hooge sig
|
in the door gif
if (playerenters) {hide;} if (playersays(start spar)) { if (isleader) {show;}} if (playersays(end spar)) { if (isleader) {show;}} that would make it so only the first person in can open/close it |
Quote:
thanks =D |
Quote:
Im having trouble making a health bar :( I dont know what the health bar itself should look like (size-shape) :((( |
Quote:
but like how do you script it so it changes depending on health? |
Thanks for the script help :) but why isnt playersays approved of anymore???
|
Quote:
|
I did not sleep last night I was up till 5 am and then I went to work at 8:30 am :( I had nothing to do so I thought about how to make Babylon better so Geovanie might like it more. I thought about it and I really want to add fishing. I thought it over and over but I cant figure out how to make it. I dont want the exact code (but i will if you wanna give ;) because im trying to learn how to make it :( not going so well though
|
Quote:
Im trying to make a health bar but all of it is so confusing :(( |
Quote:
|
whats so confuzing?
if (playerenters){ toweapons -hpsystem; } //insert some stuff that puts the HP bar up(I dont remember it & I cant get to my pc right now) if(created||timeout) { setimgpart 0,0,20,s(hp); timeout=.5; } ya know some thing like that I know I am missing a TON of stuff but I cant remember it |
Quote:
|
well what doesnt work? I wana know...but like I said I cant get to the commands right now so I cant check my self right now
|
But the gfx itself i dont understand what the exact size has to be...
|
ok...what color do you leave the inside like where the health part would be? white?
|
it is ezest to have the lenght of the bar the same as the max total amount of ap....
|
About the fishing script. I want one thats like Sanstrata's (in the sense its for free servers) and I wanna have a pond or some body of water setup near a fishing store. The player goes in and buys a fishing pole (maybe lure and bait, depends how hard it would be) and then can go fish with those. And if they catch a fish they can have it cooked and they can sell it and stuff. DO YOU THINK THAT WOULD BE TOO HARD KAIMETSU???
|
A bar would work like this
first you would use this this.stat = int((hp/maxhp)*pixels); obviosly you have to change maxhp & pixels to actual numbers, unless you can upgrade you max HP, in which case you would just change pixels to a number. Now anyways let me describe how this works: hp/maxhp turns your hp into a percentage, then * pixels gives you the length (in pixels) the bar should be then you use showimg 201,x,y; then you do changeimgvis and set it on statbar layer then you would use a simple changeimgpart 201,0,0,this.stat,10; to change the bar to it's correct shape (Change 10 to the height of the bar in pixels |
Ph yes, about the int, occasionally you will get 46.5% health, now of course you can't have .5 of a pixel, so it rounds off to the nearest integer
|
| All times are GMT +2. The time now is 03:09 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.