need alittle help please
Recompile, restart POL (you have to restart when you make changes to an itemdesc.cfg file) and post any error messages you get or give specific details on how it doesn't work.
Does the script compile?
Does POL complain about anything when starting up?
Can the tile be created?
Does the tile just not do anything when you walk on it?
Does the script compile?
Does POL complain about anything when starting up?
Can the tile be created?
Does the tile just not do anything when you walk on it?
Code: Select all
use util;
program walkon_ChromoTile(who, tile)
SendSysMessage(who,"DBG: Debugging walkon_ChromoTile");
sleep(1);
/** All valid colors here separated by commas. */
var validcolors := { 1, 2, 10, 20, 30, 40, 60, 80 };
SendSysMessage(who,"DBG: validcolors == "+validcolors);
sleep(1);
var rint := RandomInt(validcolors.size())+1;
SendSysMessage(who,"DBG: rint == "+rint);
sleep(1);
var color := validcolors[rint];
SendSysMessage(who,"DBG: color == "+color);
sleep(1);
tile.color := color;
SendSysMessage(who,"DBG: tile.color == "+tile.color);
sleep(1);
SendSysMessage(who,"DBG: Done Debugging");
return 1;
endprogram
If yours differs, or you don't get any output at all, then it's the itemdesc configuration.DBG: Debugging walkon_ChromoTile
DBG: validcolors == array { 1,2,10,20,30,40,60,80 }
DBG: rint == [some integer]
DBG: color == [another integer]
DBG: tile.color == [color's integer]
DBG: Done Debugging.
i dont understand what you mean..
this is what i have for my script, but i dunno where or how to add the teleport effect
---------------------------------------------------------------------------
use uo;
include "include/attributes";
program freeze(who, tile)
who.frozen:=1; //freeze
sleep(10); //wait 30 secs or use sleep(randomint(10)+25); to randomize
who.frozen:=0; //unfreeze
endprogram
---------------------------------------------------------------------------
item 0x6
{
Name freezetile
Desc freeze tile
WalkOnScript freezetile
Color 1186
graphic 6173
movable 1
}
this is what i have for my script, but i dunno where or how to add the teleport effect
---------------------------------------------------------------------------
use uo;
include "include/attributes";
program freeze(who, tile)
who.frozen:=1; //freeze
sleep(10); //wait 30 secs or use sleep(randomint(10)+25); to randomize
who.frozen:=0; //unfreeze
endprogram
---------------------------------------------------------------------------
item 0x6
{
Name freezetile
Desc freeze tile
WalkOnScript freezetile
Color 1186
graphic 6173
movable 1
}