Page 1 of 1

need helping making an tile plx ^^

Posted: Fri Jul 07, 2006 1:34 am
by Damo307
yeah well i wonna know if any1 would be able to help me make an refresh tile please?! :cry: :shock:

Posted: Fri Jul 07, 2006 1:41 am
by Bytehawk
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

Posted: Fri Jul 07, 2006 3:43 am
by Firedancer
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
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:

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...

Posted: Fri Jul 07, 2006 3:45 am
by Damo307
well i wont the player to freeze on it and in 30s he'll be gated if ya get me