domez86 Posted February 24, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.02 Content Count: 207 Reputation: 0 Joined: 06/11/13 Last Seen: July 11, 2020 Share Posted February 24, 2019 (edited) help me for script @summon random monster? prt_in,64,140,3 script Summoner 860,{ atcommand "@summon "random id" "seconds""; } Edited February 25, 2019 by domez86 Quote Link to comment Share on other sites More sharing options...
0 utofaery Posted February 24, 2019 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 228 Reputation: 19 Joined: 10/27/12 Last Seen: March 17, 2019 Share Posted February 24, 2019 (edited) prt_in,64,140,3 script Summoner 860,{ .@mid = 1002 //Mob ID .@time = 3; // Mob Exist Duration // dispbottom .@mid + " " + .@time; atcommand "@summon "+.@mid+" "+.@time; end; } Edited February 24, 2019 by utofaery Quote Link to comment Share on other sites More sharing options...
0 domez86 Posted February 24, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.02 Content Count: 207 Reputation: 0 Joined: 06/11/13 Last Seen: July 11, 2020 Author Share Posted February 24, 2019 3 hours ago, utofaery said: prt_in,64,140,3 script Summoner 860,{ .@mid = 1002 //Mob ID .@time = 3; // Mob Exist Duration // dispbottom .@mid + " " + .@time; atcommand "@summon "+.@mid+" "+.@time; end; } random monster pls ^_^ not specific monster. Quote Link to comment Share on other sites More sharing options...
0 utofaery Posted February 25, 2019 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 228 Reputation: 19 Joined: 10/27/12 Last Seen: March 17, 2019 Share Posted February 25, 2019 (edited) On 2/25/2019 at 4:46 AM, domez86 said: random monster pls ^_^ not specific monster. prt_in,64,140,3 script Summoner 860,{ setarray .@rmid[getarraysize(.@rmid)], //Mob ID start 1002, 1113, 1031; //Mob ID End .@r = rand (getarraysize (.@rmid) ); .@mid = .@rmid[.@r]; .@time = 1; // Mob Exist Duration 1 one minute? atcommand "@summon "+ .@mid +" "+.@time; end; } Edited February 25, 2019 by utofaery Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted February 26, 2019 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 21 hours ago Share Posted February 26, 2019 .@sum = rand(1001,3788); freeloop(1); while(getmonsterinfo(.@sum,MOB_LV)==-1) .@sum = rand(1001,3788); freeloop(0); monster "x_lhz",75,50,"Random Monster",.@sum,1; Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted February 26, 2019 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 26, 2019 (edited) prontera,147,174,5 script Change Dress 509,{ monster "this", -1,-1, "--ja--", .mobid[ rand(.total_mob) ], 1; setunitdata $@mobid, UMOB_MASTERAID, getcharid(3); setunitdata $@mobid, UMOB_MODE, MD_CANMOVE | MD_CANATTACK | MD_AGGRESSIVE | MD_ASSIST; end; OnInit: if (checkre(0)) { .@mob_db$ = "mob_db_re"; .@item_db$ = "item_db_re"; } else { .@mob_db$ = "mob_db"; .@item_db$ = "item_db"; } .total_mob = query_sql( "select id from "+ .@mob_db$ +" where mode & "+( MD_CANMOVE | MD_CANATTACK ), .mobid ); end; } Edited February 26, 2019 by AnnieRuru Quote Link to comment Share on other sites More sharing options...
0 domez86 Posted February 26, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.02 Content Count: 207 Reputation: 0 Joined: 06/11/13 Last Seen: July 11, 2020 Author Share Posted February 26, 2019 5 hours ago, TARTs said: .@sum = rand(1001,3788); freeloop(1); while(getmonsterinfo(.@sum,MOB_LV)==-1) .@sum = rand(1001,3788); freeloop(0); monster "x_lhz",75,50,"Random Monster",.@sum,1; not work... Quote Link to comment Share on other sites More sharing options...
0 utofaery Posted February 28, 2019 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 228 Reputation: 19 Joined: 10/27/12 Last Seen: March 17, 2019 Share Posted February 28, 2019 On 2/26/2019 at 2:11 PM, AnnieRuru said: prontera,147,174,5 script Change Dress 509,{ monster "this", -1,-1, "--ja--", .mobid[ rand(.total_mob) ], 1; setunitdata $@mobid, UMOB_MASTERAID, getcharid(3); setunitdata $@mobid, UMOB_MODE, MD_CANMOVE | MD_CANATTACK | MD_AGGRESSIVE | MD_ASSIST; end; OnInit: if (checkre(0)) { .@mob_db$ = "mob_db_re"; .@item_db$ = "item_db_re"; } else { .@mob_db$ = "mob_db"; .@item_db$ = "item_db"; } .total_mob = query_sql( "select id from "+ .@mob_db$ +" where mode & "+( MD_CANMOVE | MD_CANATTACK ), .mobid ); end; } Hijack this for a moment. what if excluding mvp miniboss from the list??? Quote Link to comment Share on other sites More sharing options...
0 utofaery Posted February 28, 2019 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 228 Reputation: 19 Joined: 10/27/12 Last Seen: March 17, 2019 Share Posted February 28, 2019 On 2/26/2019 at 6:42 PM, domez86 said: not work... that script is only in part and you need npc header and closing for that script to work.. On 2/26/2019 at 12:59 PM, TARTs said: prt_in,64,140,3 script Summoner 860,{ .@sum = rand(1001,3788); freeloop(1); while(getmonsterinfo(.@sum,MOB_LV)==-1) .@sum = rand(1001,3788); freeloop(0); monster "x_lhz",75,50,"Random Monster",.@sum,1; end; } Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted February 28, 2019 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 28, 2019 33 minutes ago, utofaery said: Hijack this for a moment. what if excluding mvp miniboss from the list??? to block MVP list, add where ~mode & MD_MVP I have absolutely no idea how to retrieve the list of miniboss in rathena ... enlighten me please, because rathena changed monster mode already Quote Link to comment Share on other sites More sharing options...
Question
domez86
help me for script @summon random monster?
prt_in,64,140,3 script Summoner 860,{
atcommand "@summon "random id" "seconds"";
Edited by domez86}
Link to comment
Share on other sites
9 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.