need helping making an tile plx ^^
need helping making an tile plx ^^
yeah well i wonna know if any1 would be able to help me make an refresh tile please?!
:shock:
Something like this?
Code: Select all
----- itemdesc.cfg ---------------
item 0x9980
{
Name refreshtile
WalkOnScript refreshtile
graphic 0x515
movable 0
}
----- refreshtile.src ---------------
use uo;
include "include/attributes";
program refresh(who, tile)
tile:= tile; // to suppress compiler warnings
SetHp(who, GetMaxHp(who));
SetMana(who, GetMaxMana(who));
SetStamina(who, GetMaxStamina(who));
endprogram-
Firedancer
- Grandmaster Poster
- Posts: 104
- Joined: Fri Feb 03, 2006 6:32 am
whom do you want to freeze? the gate from working or the player walking on it. If it's the later, just add ro the script:Damo307 wrote:oh ok thanxs,
now all i need is to know how to make an tile when u step on it you'll freeze so if i open and moongate people walk on it and will freeze for around 30s
who.frozen:=1; //freeze
sleep(30); //wait 30 secs or use sleep(randomint(10)+25); to randomize
who.frozen:=0; //unfreeze
careful... if the server crashes, people could remain frozen after startup. You may want to add a logon.src script to unfreeze them, just in case...