viewing paste Specific Skull Trader | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
prontera,155,180,5      script  Sample  757,{
mes "I give you an apple if you give me " + .char_name$ +"'s skull !";
if ( countitem2( 7420, 1, 0, 0, 254, 0, .cible_cid & 65535, .cible_cid >> 16 ) ) {
        mes "Yeah you have the skull ! I give you an apple";
                delitem2( 7420, 1, 1, 0, 0, 254, 0, .cible_cid & 65535, .cible_cid >> 16 );
        getitem 512, 1;
}else{
        mes "But you didnt have it.";
}
 
 
OnInit:
set .char_name$,"Emistry";
query_sql("SELECT `char_id` FROM `char` WHERE `name`='"+escape_sql(.char_name$)+"' LIMIT 1", .cible_cid );
}
Viewed 569 times, submitted by Emistry.