ALTER TABLE `char` ADD COLUMN `kill` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `name`;
what I wanted is that if player killed below level 50 players they will be jailed and if they want to go out they need to bail. bout zeny price depends on the number on player they kill.
please help me how to make this work, to query char sql deaths
to make
zeny , zeny (amount * .killc);
mes "Are you sure you want to bail - "+.@char_name$[.@i];
next;
if ( select( "Confirm","Cancel" ) == 1 ) {
query_sql( "SELECT `char_id`, `account_id`, `name`, `kill` FROM `char` WHERE `name` LIKE '%"+escape_sql( .@name$ )+"%' LIMIT 50", .@char_aid, .@account_aid, .@char_name$, .@killc );
.@killc = .killc;
if( Zeny < (.Rates * .killc) ){
mes "You didnt have enough Zeny.";
close;
}else{
set Zeny, Zeny - ( .Rates * .killc );
mes "Kabooom!";
close;
}
Good day!
I wanted to ask help.
I added column in my char Sql.
ALTER TABLE `char` ADD COLUMN `kill` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `name`;
what I wanted is that if player killed below level 50 players they will be jailed and if they want to go out they need to bail. bout zeny price depends on the number on player they kill.
please help me how to make this work, to query char sql deaths
to make
zeny , zeny (amount * .killc);
mes "Are you sure you want to bail - "+.@char_name$[.@i]; next; if ( select( "Confirm","Cancel" ) == 1 ) { query_sql( "SELECT `char_id`, `account_id`, `name`, `kill` FROM `char` WHERE `name` LIKE '%"+escape_sql( .@name$ )+"%' LIMIT 50", .@char_aid, .@account_aid, .@char_name$, .@killc ); .@killc = .killc; if( Zeny < (.Rates * .killc) ){ mes "You didnt have enough Zeny."; close; }else{ set Zeny, Zeny - ( .Rates * .killc ); mes "Kabooom!"; close; }
thanks!
Share this post
Link to post
Share on other sites