Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   ap bar movements (https://forums.graalonline.com/forums/showthread.php?t=15193)

royce 10-22-2001 11:15 AM

ap bar movements
 
I am wondering if i can trigger off a action when the players ap goes up by 1?? is this possible for non-p2p? if it is possible then how would u go about doing this?

royce 10-22-2001 11:19 AM

what i am doing is making a eating bar and everytime ur ap goes up ur hunger goes up too....when you eat it goes down...also a water amount...when ur hunger ar goes down and u become less hungry when u eat somethng it makes ur thirst bar increase....i like this idea but i wish it would be possible and if it is could u help me out with just a little bits of pieces?? thanx

KJS 10-22-2001 12:10 PM

on non p2p servers you can get what the players ap is but not set it...

Shard_IceFire 10-22-2001 08:32 PM

If I were you I would script my own hunger bar...probably not too hard. Just make it subtract or add to a client.hunger string every so often.

PresShinP2P 10-22-2001 11:56 PM

he didnt say he wanted to change the ap though...just use it as a guide line for hunger....try this

if (playerenters){
toweapons -Hungry Man;
timeout=1;
this.hunger=players[0].ap;
}
if (timeout){
if (this.hunger<players[0].ap){
this.hunger=players[0].ap;
<show hunger status bar if you have one>
}
timeout=1;
}

this should work, but ap goes up at different speeds depending on your current ap... :(

royce 10-23-2001 03:51 AM

yah but when the ap bar goes up rppidly when its under 40, that wouldnt be a problem because at some times the player does get hungry all of a sudden!

royce 10-23-2001 03:53 AM

hmmm what about the thirst script....thats what would be difficult to me...the hunger is hte ez one but the thirst can be a problem i think.

btedji 10-23-2001 03:55 AM

Quote:

Originally posted by Shard_IceFire
If I were you I would script my own hunger bar...probably not too hard. Just make it subtract or add to a client.hunger string every so often.
i think this is the best way

royce 10-23-2001 04:02 AM

bathrooms??? that would be kinda kewl...not takin a **** for a while can maybe weaken your hearts by 1 when you dont go and the bar goes back down...maybe 1.5....same rule applies to drinking and eating...hmmm i think killing the plsyer might be nicer..i dont want money to be hard to find on my server so maybe that would increse the profits for the baker job!


All times are GMT +2. The time now is 09:27 AM.

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