domez86 Posted February 11, 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 11, 2019 hi, is there a command for summon a random monster? or an item that summon a random monster? Quote Link to comment Share on other sites More sharing options...
0 utofaery Posted February 13, 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 13, 2019 (edited) On 2/12/2019 at 4:45 AM, domez86 said: hi, is there a command for summon a random monster? or an item that summon a random monster? or npc script? which spawn at chosen places. - script Ragnarok#2 -1,{ OnClock0135: OnClock0235: OnClock0335: OnClock0435: OnClock0535: OnClock0635: OnClock0735: OnClock0835: OnClock0935: OnClock1035: OnClock1135: OnClock1235: OnClock1335: OnClock1435: OnClock1535: OnClock1644: OnClock1735: OnClock1835: OnClock1935: OnClock2035: OnClock2135: OnClock2235: OnClock2335: OnClock0035: OnTest: setarray .@MobName$[0],"Amon Ra","Atroce","White Lady","Baphomet","Dark Lord","Detardeurus","Doppelganger","Dracula","Drake","Eddga","Evil Snake Lord","Garm","Turtle General","Golden Thief Bug","Gopinich",",Incantation Samurai","Stormy Knight","Amon Ra","Lady Tanee","Lord of Death","Maya","Mistress","Moonlight Flower","Orc Hero","Orc Lord","Osiris","Pharaoh","Phreeoni","RSX-0806","Tao Gunka","Turtle General","Vesper"; setarray .@MobID[0],1511,1785,1630,1039,1272,1719,1046,1389,1112,1115,1418,1252,1312,1086,1885,1492,1251,1511,1688,1373,1147,1059,1150,1087,1190,1038,1157,1159,1623,1583,1312,1685; .@mapName$ = "jawaii"; .@x = 0; .@y = 0; $Monsters_2 = getarraysize(.@mobName$); announce (" .@mapName$ :: " + .@mapName$ + " .@x " + .@x + " .@y " + .@y ),bc_all; announce (" mobname size :: " + getarraysize(.@MobName$) + " MobID size " + getarraysize(.@MobID) ),bc_all; announce "Se ha iniciado una Invasion en la Ciudad de Jawaii !!!!",bc_all; for ( .@i = 0 ; .@i < getarraysize(.@mobName$); ++.@i) { monster .@mapName$,.@x,.@y,.@mobName$[.@i],.@mobID[.@i],1,"Ragnarok#2::OnMyMobDead"; } end; OnMyMobDead: announce strcharinfo(0) + " has 1 RPs gained ",bc_all; #RPs += 1; $Monsters_2 -= 1; if ($Monsters_2 > 0) { announce "Felicidades " + strcharinfo(0) + " que mato al ultimo invasor que quedaba",bc_all,"008800"; } else { announce "Queda " + $Monsters_2 + " monstruo en jawaii.",bc_all; } end; } Or you prefered Item based script?? which is something I like the most (Portability).. function script F_TMVP { setarray .@MobName$[0],"Amon Ra","Atroce","White Lady","Baphomet","Dark Lord","Detardeurus","Doppelganger","Dracula","Drake","Eddga","Evil Snake Lord","Garm","Turtle General","Golden Thief Bug","Gopinich",",Incantation Samurai","Stormy Knight","Amon Ra","Lady Tanee","Lord of Death","Maya","Mistress","Moonlight Flower","Orc Hero","Orc Lord","Osiris","Pharaoh","Phreeoni","RSX-0806","Tao Gunka","Turtle General","Vesper"; setarray .@MobID[0],1511,1785,1630,1039,1272,1719,1046,1389,1112,1115,1418,1252,1312,1086,1885,1492,1251,1511,1688,1373,1147,1059,1150,1087,1190,1038,1157,1159,1623,1583,1312,1685; getmapxy(.@map$,.@x,.@y,UNITTYPE_PC); // Swap/Change UNITTYPE_PC to BL_PC if you are using recent version!!! IMPORTANT // UNITTYPE_PC is old rathena version command before getmapxy Updates. dispbottom ("@map$ :: " + .@map$ + " .@x :: " + .@x +" .@y :: " + .@y ) ; for ( .@i = 0 ; .@i < getarraysize(.@mobName$); ++.@i) { monster .@map$,.@x,.@y,.@mobName$[.@i],.@mobID[.@i],1,""; } end; } put the above script into npc script and edit this line NOTES: // Swap/Change UNITTYPE_PC to BL_PC if you are using recent version!!! IMPORTANT // UNITTYPE_PC is old rathena version command before getmapxy Updates. setarray .@MobName$[0],"Amon Ra","Atroce","White Lady","Baphomet","Dark Lord","Detardeurus","Doppelganger","Dracula","Drake","Eddga","Evil Snake Lord","Garm","Turtle General","Golden Thief Bug","Gopinich",",Incantation Samurai","Stormy Knight","Amon Ra","Lady Tanee","Lord of Death","Maya","Mistress","Moonlight Flower","Orc Hero","Orc Lord","Osiris","Pharaoh","Phreeoni","RSX-0806","Tao Gunka","Turtle General","Vesper"; setarray .@MobID[0],1511,1785,1630,1039,1272,1719,1046,1389,1112,1115,1418,1252,1312,1086,1885,1492,1251,1511,1688,1373,1147,1059,1150,1087,1190,1038,1157,1159,1623,1583,1312,1685; then put this below line into any custom item within the item script part callfunc ("F_TMVP"); Edited February 13, 2019 by utofaery CODEBOX is lame it doesn't let people copy and paste from within codebox Quote Link to comment Share on other sites More sharing options...
Question
domez86
hi, is there a command for summon a random monster? or an item that summon a random monster?
Link to comment
Share on other sites
1 answer 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.