1. I want to remove other maps. I just want the prontera map. Is that correct?
Spoiler
//============================================================
//= Controls on the production of bugs
//============================================================
if (rand(1,10000) <= 100 && $@GTB == 0) {
// Respawn of GTB
switch (rand(1,1)) {
case 1:
set .@j, rand(1,27);
monster "rentinb" + .@j + ".gat",0,0,"Golden Thief Bug",1086,1,"rent_bichos::OnGTB";
announce "Uh-oh! It seems that we have a plague in the Prontera Villas, house" + .@j + ".",0,0x99CCFF;
break;
}
set $@GTB, 1; // Active GTB
}
stopnpctimer;
initnpctimer;
end;
OnGTB:
set $@GTB, 0;
end;
}
Error 2. Once the house is invaded by insects, the script always announces the wrong house ...
Question
hardelite
Hi guys, how are you?
I have a small error in the script.
Script original: https://nopaste.xyz/?b1c061751d45c168#m9OdnvK/5Uqw1UZq7ym4zhc6vNAwQtEMtDS4bM7zO1A=
1. I want to remove other maps. I just want the prontera map. Is that correct?
//============================================================
//= Controls on the production of bugs
//============================================================
- script rent_bichos -1,{
end;
OnInit:
set $@GTB, 0;
initnpctimer;
end;
OnTimer7200000:
// Respawn of bugs in the house
for (set .@j, 1; .@j < 23; set .@j, .@j + 1) {
callfunc "rent_spawnbug","a" + .@j + "";
callfunc "rent_spawnbug","c" + .@j + "";
callfunc "rent_spawnbug","d" + .@j + "";
callfunc "rent_spawnbug","e" + .@j + "";
callfunc "rent_spawnbug","f" + .@j + "";
callfunc "rent_spawnbug","g" + .@j + "";
}
// Villas Prontera
for (set .@j, 1; .@j < 28; set .@j, .@j + 1) {
callfunc "rent_spawnbug","b" + .@j + "";
}
if (rand(1,10000) <= 100 && $@GTB == 0) {
// Respawn of GTB
switch (rand(1,1)) {
case 1:
set .@j, rand(1,27);
monster "rentinb" + .@j + ".gat",0,0,"Golden Thief Bug",1086,1,"rent_bichos::OnGTB";
announce "Uh-oh! It seems that we have a plague in the Prontera Villas, house" + .@j + ".",0,0x99CCFF;
break;
}
set $@GTB, 1; // Active GTB
}
stopnpctimer;
initnpctimer;
end;
OnGTB:
set $@GTB, 0;
end;
}
Error 2. Once the house is invaded by insects, the script always announces the wrong house ...
Please, can anyone help me?
(Ps: Sorry for my English)
Edited by hardeliteLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.