@nixrlz:
Delete this:
OnAgitStart:
while(agitcheck()) {
misceffect EF_BEGINSPELL6;
sleep 425;
}
end;I won't script a timer until I find either the time or motivation to do so.
@Greinz:
I'm actually not sure why that would happen. My controller doesn't use any 'killmonsterall' command, and the only 'killmonsterall' invoked in agit_main is OnAgitInit, only if a castle has no owner. o.o
@Thanna:
http://pastebin.com/raw.php?i=9XETttrZ
@TrojanWorm:
mes "You must hunt:";
- query_sql("SELECT ID FROM mob_db WHERE left(Sprite, 4) != 'meta' AND left(Sprite, 2) != 'E_' AND ~Mode & 32 AND EXP > 0 AND MVP1id = 0 AND DropCardid > 4000 AND DropCardid < 5000 AND ID < 2000 ORDER BY rand() LIMIT "+.Quests, .@mob);
+ query_sql("SELECT ID FROM `mob_db` WHERE left(Sprite, 4) != 'meta' AND left(Sprite, 2) != 'E_' AND ~Mode & 32 AND EXP > 0 AND MVP1id = 0 AND DropCardid > 4000 AND DropCardid < 5000 AND ID < 2000 AND instr('"+.Blacklist$+"',ID) = 0 ORDER BY rand() LIMIT "+.Quests, .@mob);
for (set .@i,0; .@i<.Quests; set .@i,.@i+1) {
setarray .Shop[0], // Reward items: <ID>,<point cost> (about 10~20 points per hunt).
512,1,513,1,514,1,538,5,539,5,558,10,561,10;
+ set .Blacklist$, // Blacklisted mob IDs.
+ "1062,1088,1183,1186,1200,1212,1220,1221,1234,1235,"+
+ "1244,1245,1250,1268,1290,1293,1294,1296,1298,1299,"+
+ "1300,1301,1303,1304,1305,1306,1308,1309,1311,1313,"+
+ "1515,1588,1618,1676,1677,1678,1679,1796,1797,1974,"+
+ "1975,1976,1977,1978,1979";
npcshopdelitem "mission_shop",512;Full script: http://pastebin.com/raw.php?i=4EwvkvBZ
@windston:
mes "Select the cards you";
mes "want to trade in.";
+ if (.Level) {
+ mes " ";
+ mes "They must be dropped";
+ mes "by monsters of level";
+ mes .Level+" and above.";
+ }
deletearray @sold_nameid[0],getarraysize(@sold_nameid);
for(set .@i,0; .@i<getarraysize(@sold_nameid); set .@i,.@i+1)
if (@sold_nameid[.@i] > 4000 && @sold_nameid[.@i] < 4700) {
+ if (.Level) {
+ query_sql("SELECT `LV` FROM `mob_db` WHERE `DropCardid` = "+@sold_nameid[.@i],.@lv);
+ if (.@lv < .Level) {
+ dispbottom getitemname(@sold_nameid[.@i])+" is under the minimum level.";
+ continue;
+ }
+ }
set .@card_id[getarraysize(.@card_id)], @sold_nameid[.@i];
OnInit:
+ set .Level,0; // Minimum monster level to trade corresponding cards.
set .Points$,"#Card_Points"; // Variable to store points.Full script: http://pastebin.com/raw.php?i=AC0CquTa
@DJFUNK:
// Shop NPCs -- supplying no argument displays entire menu.
// callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}}; @Eivohr:
I don't support eAmod, sorry.