Jump to content
  • 0

Show last summoned Monster


kainfx

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

Hy rAthena friends, you all know the npc warper script that shows the last location you warped to ?

i need something like that für my mvp summon npc, so that i have not to scroll down all that way in my mvp summoner

thx for reading

guild_vs1,50,49,5 script MVP Spawner 403,{
switch(select("Amon Ra:Assassin Cross Eremes:Atroce:Bacsojin:Baphomet:Boitata:Champion Chen:Clown Alphoccio:Creator Flamel:Dark Lord:Detardeurus:Doppelganger:Dracula:Drake:Eddga:Evil Snake Lord:Fallen Bishop:Garm:Gloom Under Night:Gold Queen Scaraba:Golden Thief Bug:Gopinich:Gypsy Trentini:High Priest Margaretha:High Wizard Kathryne:Ifrit:Incantation Samurai:Kiel D-01:Stormy Knight:Kraken:Ktullanux:Lady Tanee:Leak:Lord Knight Seyren:Lord of Death:Lost Dragon:Maya:Mistress:Moonlight Flower:Nidhoggr's Shadow:Orc Hero:Orc Lord:Osiris:Paladin Randel:Pharaoh:Phreeoni:Professor Celia:Queen Scaraba:RSX 0806:Sniper Shecil:Stalker Gertie:Tao Gunka:Thanatos:Turtle General:Valkyrie Randgris:Vesper:Whitesmith Harword:Wounded Morroc:Ygnizem")) {
 case 1:
atcommand ("@monster 1511");
  close;
 case 2:
atcommand ("@monster 1647");
  close;
 case 3:
atcommand ("@monster 1785");
  close;
 case 4:
atcommand ("@monster 1630");
  close;
 case 5:
atcommand ("@monster 1039");
  close;
 case 6:
atcommand ("@monster 2068");
  close;
 case 7:
atcommand ("@monster 2238");
  close;
 case 8:
atcommand ("@monster 2240");
  close;
 case 9:
atcommand ("@monster 2236");
  close;
 case 10:
atcommand ("@monster 1272");
  close;
 case 11:
atcommand ("@monster 1719");
  close;
 case 12:
atcommand ("@monster 1046");
  close;
 case 13:
atcommand ("@monster 1389");
  close;
 case 14:
atcommand ("@monster 1112");
  close;
 case 15:
atcommand ("@monster 1115");
  close;
 case 16:
atcommand ("@monster 1418");
  close;
 case 17:
atcommand ("@monster 1871");
  close;
 case 18:
atcommand ("@monster 1252");
  close;
 case 19:
atcommand ("@monster 1768");
  close;
 case 20:
atcommand ("@monster 2165");
  close;
 case 21:
atcommand ("@monster 1086");
  close;
 case 22:
atcommand ("@monster 1885");
  close;
 case 23:
atcommand ("@monster 2241");
  close;
 case 24:
atcommand ("@monster 1649");
  close;
 case 25:
atcommand ("@monster 1651");
  close;
 case 26:
atcommand ("@monster 1832");
  close;
 case 27:
atcommand ("@monster 1492");
  close;
 case 28:
atcommand ("@monster 1734");
  close;
 case 29:
atcommand ("@monster 1251");
  close;
 case 30:
atcommand ("@monster 2202");
  close;
 case 31:
atcommand ("@monster 1779");
  close;
 case 32:
atcommand ("@monster 1688");
  close;
 case 33:
atcommand ("@monster 2156");
  close;
 case 34:
atcommand ("@monster 1646");
  close;
 case 35:
atcommand ("@monster 1373");
  close;
 case 36:
atcommand ("@monster 2131");
  close;
 case 37:
atcommand ("@monster 1147");
  close;
 case 38:
atcommand ("@monster 1059");
  close;
 case 39:
atcommand ("@monster 1150");
  close;
 case 40:
atcommand ("@monster 2022");
  close;
 case 41:
atcommand ("@monster 1087");
  close;
 case 42:
atcommand ("@monster 1190");
  close;
 case 43:
atcommand ("@monster 1038");
  close;
 case 44:
atcommand ("@monster 2235");
  close;
 case 45:
atcommand ("@monster 1157");
  close;
 case 46:
atcommand ("@monster 1159");
  close;
 case 47:
atcommand ("@monster 2237");
  close;
 case 48:
atcommand ("@monster 2087");
  close;
 case 49:
atcommand ("@monster 1623");
  close;
 case 50:
atcommand ("@monster 1650");
  close;
 case 51:
atcommand ("@monster 2239");
  close;
 case 52:
atcommand ("@monster 1583");
  close;
 case 53:
atcommand ("@monster 1708");
  close;
 case 54:
atcommand ("@monster 1312");
  close;
 case 55:
atcommand ("@monster 1751");
  close;
 case 56:
atcommand ("@monster 1685");
  close;
 case 57:
atcommand ("@monster 1648");
  close;
 case 58:
atcommand ("@monster 1917");
  close;
 case 59:
atcommand ("@monster 1658");
  close;

}
}
guild_vs2,50,50,4 duplicate(MVP Spawner) MVP Spawner#1 403
guild_vs3,50,50,4 duplicate(MVP Spawner) MVP Spawner#2 403
guild_vs4,50,50,4 duplicate(MVP Spawner) MVP Spawner#3 403

Edited by Arcenciel
Codeboxed
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  08/02/12
  • Last Seen:  

Sorry but can you explain more you want a Duplicate Of Mvp Warper in you're Warper Script?

Like where you select dungeons/fields etc You want it to say Warp to Mvp Dungeon or whatnot?

Oh Edit you mean like in the warper How it shows Warp to Last dungeon you warp to

You want it to say Summon last MVP You summoned and it'll be helpful if you gave us the script of the mvp summoner you're useing :P

Edited by Volusion
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

Thx for awnsering, yeah thats what i want

added my script in first post

im a scripting noob and this is my first script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  08/02/12
  • Last Seen:  

Sorry to say this But am also a Newbie at Scripting but i think its something like this i guess you can try to rename it etc just do rename all With Wordpress whatever add it to ur script

set .lastwarp, 1;
set .lastwarpfee, 1000;

Something like this i know am probably wayoff But if you dont figure it out and you're in a rush please ask a Script/DB Developers

Or Emistry etc Sorry i couldn't help Am mostl'y Client Side/Server side helper

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

I probably made some typos, but here's your code in ~10 lines:

guild_vs1,50,49,5	script	MVP Spawner	403,{
set .@i, select(.menu$);
if (.@i == 1) doevent "Warper::OnMenu";
else atcommand "@monster "+.mobs[.@i-2];
close;
OnInit:
setarray .mobs[0],1511,1647,1785,1630,1039,2068,2238,2240,2236,1272,1719,1046,1389,1112,1115,1418,1871,1252,1768,2165,1086,1885,2241,1649,1651,1832,1492,1734,1251,2202,1779,1688,2156,1646,1373,2131,1147,1059,1150,2022,1087,1190,1038,2235,1157,1159,2237,2087,1623,1650,2239,1583,1708,1312,1751,1685,1648,1917,1658;
set .menu$,"Warp...";
for(set .@i,0; .@i<getarraysize(.mobs); set .@i,.@i+1)
	set .menu$, .menu$+strmobinfo(1,.mobs[.@i])+":";
end;
}
guild_vs2,50,50,4	duplicate(MVP Spawner)	MVP Spawner#1	403
guild_vs3,50,50,4	duplicate(MVP Spawner)	MVP Spawner#2	403
guild_vs4,50,50,4	duplicate(MVP Spawner)	MVP Spawner#3	403

Then take any warper script, *cough* mine *cough*, and add this below the header:

OnMenu:

Edit: Ah, never mind.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

hmm maybe i do something wrong but all i see is a blank window on the npc,

i didnt think it would be so hard to create a button thats spawns the last monster i spawned by the mvp spawner npc

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

he is just looking for a NPC that can summon a monster from a list

and the NPC will record which Monster he/she have summoned ( try to explain by using Warper's Example )

this is the script you want.

prontera,155,181,5 script Sample 757,{
setarray .@MobList[1],1511,1647,1785,1630;

if( @LastMobID ) set .@MobList[0],@LastMobID;
for( set .@i,( (@LastMobID)?0:1 ); .@i < getarraysize( .@MobList ); set .@i,.@i + 1 )
set .@Menu$,.@Menu$ + ( (!.@i)?"^0000FF[ LAST MOB ] ":" ^FF0000~ " ) + getmonsterinfo(.@MobList[.@i],0)+"^000000:";
set @LastMobID,.@MobList[ ( select( .@Menu$ ) - ( (@LastMobID)?1:0 ) ) ];
mes "You selected "+getmonsterinfo(@LastMobID,0);
monster strcharinfo(3),-1,-1,"--ja--",@LastMobID,1;
close;
}

only edit this part

setarray .@MobList[1],1511,1647,1785,1630;

make sure only edit the number after the .@MobList[1]

GLm6a.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  07/21/12
  • Last Seen:  

@Emistry: youre my hero, gotty try it right now

Edit: IT WORKS so wonderfull, i owe you a big one.

edit2: btw where did you learn to script ? can you give me some advice where i can learn scripting like you ?

Edited by kainfx
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

can I request if you summon a boss mobs you'll need to pay example TCG 100 pcs

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...