Brynner Posted June 6, 2013 Posted June 6, 2013 i modified the warper npc of rathena.and i just add getmapusers on every map you choose. is there any easy way to get map? i insert the getmapusers on menu. "Prontera["+getmapusers("prontera")+"]",T1, so this script is very long since every warp has different map. is there any easy way to use getmapusers without using the specific map? Quote
Emistry Posted June 6, 2013 Posted June 6, 2013 they use +getmapusers(.@Maps$[.@i])+ to get the map. because the .@maps$[.@i] has been defined here.. setarray .@Maps$[0],"pvp_n_8-1","pvp_n_8-2","pvp_n_8-3","pvp_n_8-4","pvp_n_8-5"; setarray .@Maps$[0],"pvp_y_8-1","pvp_y_8-2","pvp_y_8-3","pvp_y_8-4","pvp_y_8-5"; you can use toastofdoom's warper too ... or annieruru's favourite warper ..or any other from the forum ...else just add the getmapusers yourself.. Quote
Jaburak Posted June 6, 2013 Posted June 6, 2013 I think no. You have to put it on every map I guess. Just like this one; warper.txt Quote
Brynner Posted June 6, 2013 Author Posted June 6, 2013 hmmm i checked the pvp script of rathena. //Fight square Reception Staff (Locations below) - script FSRS::fsr -1,{ if(strnpcinfo(4) == "pvp_y_room") { setarray .@Maps$[0],"pvp_y_8-1","pvp_y_8-2","pvp_y_8-3","pvp_y_8-4","pvp_y_8-5"; setarray .@Name$[0],"Prontera","Izlude","Payon","Alberta","Morroc"; setarray .@Limit[0],128,128,128,128,128; } else { setarray .@Maps$[0],"pvp_n_8-1","pvp_n_8-2","pvp_n_8-3","pvp_n_8-4","pvp_n_8-5"; setarray .@Name$[0],"Sandwich","Lock on","Four Room","Under cross","Compass Room"; setarray .@Limit[0],64,32,32,32,32; } for(set .@i,0; .@i<5; set .@i,.@i+1) set .@menu$, .@menu$+.@Name$[.@i]+" ["+getmapusers(.@Maps$[.@i])+" / "+.@Limit[.@i]+"]:"; set .@menu$, .@menu$+"Cancel."; set .@i, select(.@menu$)-1; if (.@i == 5) close; if (getmapusers(.@Maps$[.@i]) >= .@Limit[.@i]) { mes "[PVP Fight Square Reception Staff]"; mes "This map is currently full."; } else warp .@Maps$[.@i],0,0; close; they use +getmapusers(.@Maps$[.@i])+ to get the map. Quote
Euphy Posted June 6, 2013 Posted June 6, 2013 Yeah, you can't do this easily with my script. I decided not to store the main menu. Quote
Brynner Posted June 6, 2013 Author Posted June 6, 2013 Yeah, you can't do this easily with my script. I decided not to store the main menu. oh i see.i think i'm gonna use Toasty's Warper. but it seems outdated. Quote
Question
Brynner
i modified the warper npc of rathena.and i just add getmapusers on every map you choose.
is there any easy way to get map?
i insert the getmapusers on menu.
"Prontera["+getmapusers("prontera")+"]",T1,
so this script is very long since every warp has different map. is there any easy way to use getmapusers without using the specific map?
6 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.