-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by babycakestheman
-
-
I finally got the time working, but now, The mob count doesnt work, why is this script %$#king me so hard in the #ss. What am I missing now, the mob count seemed to work before. what did I erase?
yes, it's written by me ..
the OnMinute part should be under these lineOnWhisperGlobal: if( getgmlevel() < 90 ) end; // OnMinute25: // <------------- HERE
sample ...
https://rathena.org/board/topic/68812-help-automatic-monster-invasion/?p=178899- script Sample -1,{
function Invasion;
OnInit:
setarray .Maps$[0],"alberta","aldebaran","amatsu","ayothaya","comodo","einbroch","geffen","gonryun","hugel","jawaii","lighthalzen","louyang","morocc","moscovia","niflheim","payon","rachel","veins","umbala","xmas","yuno";
end;
OnWhisperGlobal:
if( getgmlevel() < 90 ) end;
OnMinute11:
if( .Invasion ) end;
set .Invasion,1;
set .SelectedMap$,.Maps$[ rand( getarraysize(.Maps$) ) ];
switch( rand(2) ){
default: end;
// MAX : ~64 Different Monster in each Cases( 1 BOSS + 63 Normal )
// Case <X>: Invasion( <BOSS>,<Amount>,<MOBID>,<AMOUNT>,....,<MOBID>,<AMOUNT> ); break;
Case 0: Invasion( 1399,1,1898,30,1898,20,1898,10,1898,5 ); break;
Case 1: Invasion( 1808,1,1799,10,1800,10,1801,10,1802,10,1803,10,1804,10 ); break;
}
initnpctimer;
end;
OnTimer1500000:
set .Invasion,0;
announce "Time's Up !! Invasion End.",0;
killmonster .SelectedMap$,"All";
end;
function Invasion {
monster .SelectedMap$,0,0,"INVASION BOSS",getarg(0),getarg(1),strnpcinfo(0)+"::OnBossKilled";
for( set .@i,2; getarg( .@i,0 ); set .@i,.@i + 2 )
monster .SelectedMap$,0,0,"INVASION MOB",getarg(.@i),getarg(.@i+1),strnpcinfo(0)+"::OnMobKilled";
announce "Invasion STARTED at "+.SelectedMap$+" .. Hurry Up !!.",0;
}
OnBossKilled:
// getitem 512,100;
if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBossKilled" ) ){
mapannounce .SelectedMap$,"MAIN BOSS - Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBossKilled" ),0;
}else{
killmonster .SelectedMap$,"All";
mapannounce .SelectedMap$,"ALL Boss has been Killed, Treasure BOX has been Summoned",0;
monster .SelectedMap$,0,0,"TREASURE BOX",1333,30,strnpcinfo(0)+"::OnBoxKilled";
}
end;
OnMobKilled:
// getitem 512,1;
if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnMobKilled" ) ){
mapannounce .SelectedMap$,"Monsters Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnMobKilled" ),0;
}
end;
OnBoxKilled:
// getitem 607,1;
if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBoxKilled" ) ){
mapannounce .SelectedMap$,"Treasure Box Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBoxKilled" ),0;
}else{
announce "Invasion Event end Successfully.",0;
stopnpctimer;
}
end;
}Ha yes maybe you forgot the args?
Invasion( 1870,1,1898,30,1898,20,1898,10,1898,5 );
Look at my updated script, am i forgetting the args somewhere else?
-
you can follow emistry's advice in this topic https://rathena.org/board/topic/68812-help-automatic-monster-invasion/
and use the script in rep 4, it's very similar to yours and it works
OnMinute25: function Invasion { monster .SelectedMap$,0,0,"INVASION BOSS",getarg(0),getarg(1),strnpcinfo(0)+"::OnBossKilled"; for( set .@i,2; getarg( .@i,0 ); set .@i,.@i + 2 ) monster .SelectedMap$,0,0,"INVASION MOB",getarg(.@i),getarg(.@i+1),strnpcinfo(0)+"::OnMobKilled"; announce "Zombie Simulator at "+.SelectedMap$+" .. Hurry Up !!.",0; }
here you def the function but you don't execute it
function Invasion { monster .SelectedMap$,0,0,"INVASION BOSS",getarg(0),getarg(1),strnpcinfo(0)+"::OnBossKilled"; for( set .@i,2; getarg( .@i,0 ); set .@i,.@i + 2 ) monster .SelectedMap$,0,0,"INVASION MOB",getarg(.@i),getarg(.@i+1),strnpcinfo(0)+"::OnMobKilled"; announce "Zombie Simulator at "+.SelectedMap$+" .. Hurry Up !!.",0; } OnMinute25: Invasion; end;
Thank you for the help but, sadly it isnt working. Why is this script so difficult.
- script Sample -1,{
function Invasion;
OnInit:
setarray .Maps$[0],"alberta","aldebaran","amatsu","ayothaya","comodo","einbroch","geffen","gonryun","hugel","jawaii","lighthalzen","louyang","morocc","moscovia","niflheim","payon","rachel","veins","umbala","xmas","yuno";
end;
OnWhisperGlobal:
if( getgmlevel() < 90 ) end;
if( .Invasion ) end;
OnMinute00:
OnMinute11:
set .Invasion,1;
set .SelectedMap$,.Maps$[ rand( getarraysize(.Maps$) ) ];
switch( rand(2) ){
default: end;
// MAX : ~64 Different Monster in each Cases( 1 BOSS + 63 Normal )
// Case <X>: Invasion( <BOSS>,<Amount>,<MOBID>,<AMOUNT>,....,<MOBID>,<AMOUNT> ); break;
Case 0: Invasion( 1399,1,1898,30,1898,20,1898,10,1898,5 ); break;
Case 1: Invasion( 1808,1,1799,10,1800,10,1801,10,1802,10,1803,10,1804,10 ); break;
}
initnpctimer;
end;
OnTimer900000:
set .Invasion,0;
announce "Time's Up !! Invasion End.",0;
killmonster .SelectedMap$,"All";
end;
function Invasion {
monster .SelectedMap$,0,0,"INVASION BOSS",getarg(0),getarg(1),strnpcinfo(0)+"::OnBossKilled";
for( set .@i,2; getarg( .@i,0 ); set .@i,.@i + 2 )
monster .SelectedMap$,0,0,"INVASION MOB",getarg(.@i),getarg(.@i+1),strnpcinfo(0)+"::OnMobKilled";
announce "Mob Invasion at "+.SelectedMap$+" .. Hurry Up !!.",0;
}
OnBossKilled:
// getitem 616,20;
if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBossKilled" ) ){
mapannounce .SelectedMap$,"MAIN BOSS - Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBossKilled" ),0;
}else{
killmonster .SelectedMap$,"All";
mapannounce .SelectedMap$,"ALL Boss has been Killed, Treasure BOX has been Summoned",0;
monster .SelectedMap$,0,0,"TREASURE BOX",1333,30,strnpcinfo(0)+"::OnBoxKilled";
}
end;
OnMobKilled:
// getitem 512,1;
if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnMobKilled" ) ){
mapannounce .SelectedMap$,"Monsters Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnMobKilled" ),0;
}
end;
OnBoxKilled:
// getitem 607,1;
if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBoxKilled" ) ){
mapannounce .SelectedMap$,"Treasure Box Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBoxKilled" ),0;
}else{
announce "Mob Invasion end Successfully.",0;
stopnpctimer;
set .Invasion,0;
}
end;
}
So after days of playing around with the time code,it finally worked but, its missing some things like the mob count, slaves dying when MVP is killed and the treasure box is not showing up after all mobs are dead. plus when I checked my map server, it was showing this.
-
there's something wrong about how you declare or call your function, where did you get this script?
I'm sorry, I forgot who did I got this from, but its definitely from this forum. Anyway, is there anyway you could help me man?
-
This is embarrassing, but I cant seem to make this event work. trust me on this, I searched this forum for answers back to back, and yes they all worked.......with my other events. Except for this one though, i tried OnMinute,OnClock,etc all seem to fail. Why? What am I doing wrong?
and yes, I added this onto my scripts_custom.conf
just in case you're wondering.
- script Sample -1,{ function Invasion; OnInit: setarray .Maps$[0],"alberta","aldebaran","amatsu","ayothaya","comodo","einbroch","geffen","gonryun","hugel","jawaii","lighthalzen","louya ng","morocc","moscovia","niflheim","payon","rachel","veins","umbala","xmas","yuno"; end; OnWhisperGlobal: if( getgmlevel() < 90 ) end; if( .Invasion ) end; set .Invasion,1; set .SelectedMap$,.Maps$[ rand( getarraysize(.Maps$) ) ]; switch( rand(4) ){ default: end; // MAX : ~64 Different Monster in each Cases( 1 BOSS + 63 Normal ) // Case <X>: Invasion( <BOSS>,<Amount>,<MOBID>,<AMOUNT>,....,<MOBID>,<AMOUNT> ); break; Case 0: Invasion( 1870,1,1898,30,1898,20,1898,10,1898,5 ); break; } initnpctimer; end; OnTimer3600000: set .Invasion,0; announce "Time's Up !! Invasion End.",0; killmonster .SelectedMap$,"All"; end; OnMinute25: function Invasion { monster .SelectedMap$,0,0,"INVASION BOSS",getarg(0),getarg(1),strnpcinfo(0)+"::OnBossKilled"; for( set .@i,2; getarg( .@i,0 ); set .@i,.@i + 2 ) monster .SelectedMap$,0,0,"INVASION MOB",getarg(.@i),getarg(.@i+1),strnpcinfo(0)+"::OnMobKilled"; announce "Zombie Simulator at "+.SelectedMap$+" .. Hurry Up !!.",0; } OnBossKilled: // getitem 512,100; if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBossKilled" ) ){ mapannounce .SelectedMap$,"MAIN BOSS - Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBossKilled" ),0; }else{ killmonster .SelectedMap$,"All"; mapannounce .SelectedMap$,"ALL Boss has been Killed, Treasure BOX has been Summoned",0; monster .SelectedMap$,0,0,"TREASURE BOX",1333,30,strnpcinfo(0)+"::OnBoxKilled"; } end; OnMobKilled: // getitem 512,1; if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnMobKilled" ) ){ mapannounce .SelectedMap$,"Monsters Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnMobKilled" ),0; } end; OnBoxKilled: // getitem 607,1; if( mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBoxKilled" ) ){ mapannounce .SelectedMap$,"Treasure Box Remain : "+mobcount( .SelectedMap$,strnpcinfo(0)+"::OnBoxKilled" ),0; }else{ announce "Zombie Simulator end Successfully.",0; stopnpctimer; set .Invasion,0; } end; }
-
So I re-mod your script. I added the word MVP to those maps that has MVPs. Just to make it more spicier.
-
double check your ROTD bonus item rate setting ...etc..
Im sorry but I do not understand How?
How do you input automated Exp bonus, item and rate? please do elaborate, Im not that great with scripts, honestly, I see them as if they were hieroglyphics.
Please do help, Im sorry for the spoon-feeding, its just I dont get it seriously.
-
Good update for the community, there's still a lot more that's fallen behind. Awesome work though*!
Yes you're welcome,Though, some gears still show "Unknown Item" forgive me.
-
Hello!
So....I searched the forum and no one seems to have an updated version of a mall. Well, worry no further friend. Use this script for your server, but I hope you do give me credit. Ah! Who am i kidding, of course you wont.
Oh, and also, I include Headers, forgive my usage of notepads. I do not know how to group/script "Chatbox" NPCs in one notepad. If you guys know how, please do care to share/help.
Thank you!
Enjoy
mall source: ratemyserver- 2
- 1
-
First off, Hello and I am truly grateful that this forum exists, without you guys I wont be able to pay Ragnarok offline Renewal,this is like waking up on Christmas morning.
So, I just created my own server. my Errors so far are items in itemdb starting from #20018 onwards shows Unknown item(apple) in game and prompts an Error when i load my character. So, with that said, I tried finding solutions, I learned that you must have the correct files in specific folders.
Now, please take a look at the pictures that I uploaded. Is this normal? Is there a solution for this? I know it must show names like ex. "¾ÆÀÌÅÛ" and so.
Also, I am also curious with the app called Shoper v.3 that you use for making shops. I tried switching all the collection and small files, also the idnum2itemdesctable. But the shoper.exe wont open when I double click. Is this because my file names are blank squares?
Thank you forum.
PS. Sorry for my bad english. its my second language.
Lol its simple. Follow these steps:
1. Download Unbollox (google it) from ratemyserver.
2. Click on it. Keep this file's URL as the file directory.
3. Click on the blank boxes in the unbollox app. it will convert all back to how it should look.
Holy Crap! That WAS simple. Thank you so much Sir.
Try to update your iteminfo.lua. If use .lub files rename it to .lub. From itemInfo.lua -> iteminfo.lub in your RO folder under system folder.
If you use shopper.. change only the itemdb.txt for you to have an updated items. Don't change the other files only itemdb.txt Nevermind the other files such as the sprites. You don't need them. shopper wont load because the program was designed during the time of eAthena.
Your system does not support korean language that's why you see blank square.
I did update my iteminfo.lua. But, still from items #20018(Horo/Holo Ear) onward still gives me an Error.
So I did what you said for the shoper, and it worked. Thank you man!
-
First off, Hello and I am truly grateful that this forum exists, without you guys I wont be able to pay Ragnarok offline Renewal,this is like waking up on Christmas morning.
So, I just created my own server. my Errors so far are items in itemdb starting from #20018 onwards shows Unknown item(apple) in game and prompts an Error when i load my character. So, with that said, I tried finding solutions, I learned that you must have the correct files in specific folders.
Now, please take a look at the pictures that I uploaded. Is this normal? Is there a solution for this? I know it must show names like ex. "¾ÆÀÌÅÛ" and so.
Also, I am also curious with the app called Shoper v.3 that you use for making shops. I tried switching all the collection and small files, also the idnum2itemdesctable. But the shoper.exe wont open when I double click. Is this because my file names are blank squares?
Thank you forum.
PS. Sorry for my bad english. its my second language.
What am I doing wrong?
in Scripting Support
Posted
Now this is weird. I tried loading your script without modifying it, It still shows this error. This didnt happen before, i experienced the feature where the treasure chests shows up after you kill all mobs or the boss alone.