need helping making an tile plx ^^

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Damo307
Expert Poster
Posts: 79
Joined: Fri Jul 07, 2006 1:32 am

need helping making an tile plx ^^

Post by Damo307 »

yeah well i wonna know if any1 would be able to help me make an refresh tile please?! :cry: :shock:
Bytehawk
Apprentice Poster
Posts: 56
Joined: Fri Feb 03, 2006 2:25 am

Post 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
Firedancer
Grandmaster Poster
Posts: 104
Joined: Fri Feb 03, 2006 6:32 am

Post 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...
Damo307
Expert Poster
Posts: 79
Joined: Fri Jul 07, 2006 1:32 am

Post by Damo307 »

well i wont the player to freeze on it and in 30s he'll be gated if ya get me
Post Reply