#define T_BEN_NEYIM my.skill1
#define T_SEN_KIMSIN your.skill1
#define T_OYUNCU 0
#define T_BUTON 1
#define T_NPC 2
function fOyuncu_dugmeye_basti()
{
switch(event_type) // bana ne yaptilar?
{
case EVENT_SCAN: // beni taradilar
if(T_SEN_KIMSIN == T_OYUNCU)
{
beep();
}
break;
}
}
action buton_makinesi()
{
wait(1);
c_setminmax(me);
my.max_z -= 10;
my.z = my.z - 10;
T_BEN_NEYIM = T_BUTON;
my.emask |= ENABLE_SCAN;
my.event = fOyuncu_dugmeye_basti;
}