viewing paste auto pot + 1 map + 1 player | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
 
-   script  Sample#pot  -1,{
OnInit:
    .item_id = 607;
    .player$ = "Dan";
    .map$ = "guild_vs3";
    .hp_rate = 90;
    .delay = 1000;
    
    setmapflag .map$,mf_loadevent;
    end;
 
OnPCLoadMapEvent:
while( strcharinfo(3) == .map$ && .player$ == strcharinfo(0) ){
    if( (( HP / MaxHp ) * 100 ) < .hp_rate && countitem( .item_id ) ){
        consumeitem .item_id;
        delitem .item_id,1;
    }
    sleep .delay;
}
end;
}
Viewed 1321 times, submitted by Emistry.