could someone tell me how i can add effects to an item and so it works? i can get the item to make but the effect i have no clue on what to do e.g. like a flame tile, i can get the tile done but when you walk on it, nothing happens..
please help
please help =( >> adding effects to items
If you look at the main itemdesc file in \pol\config and search for rexcob1 you'll find the following:
Note the line: WalkOnScript resField
Now if you look in \pol\scripts\items you will find resField.src. I reproduce it below.
You can use that as an example of what is needed to make a walokon script and tile.
Code: Select all
// Resurrection-field cobblestones
Item 0xEE01
{
Name rescob1
graphic 0x515
WalkOnScript resField
Movable 0
}
Now if you look in \pol\scripts\items you will find resField.src. I reproduce it below.
Code: Select all
use os;
use uo;
include "include/res";
include "include/resPenalty";
include ":poisonwatcher:poisons";
const EFFECT_SPARKLE := 0x373a;
const SOUND_EFFECT_RES := 0x215;
program resfield(mobile)
set_critical(1);
if(mobile.dead)
start_script("itemRes", mobile);
return;
else
SendSysMessage(mobile,"You are at peace...");
endif
endprogram
-
Marilla