HristDead Posted July 18, 2013 Share Posted July 18, 2013 (edited) I'm using the script that Skorm made for me, but I am getting this number showing up as dispbottom message and I've no clue where its coming from... I know it has to do with the map event because when I take that part out the number disappears. >< Does anyone know whats causing this? Here is the code: OnPCLoadMapEvent: set [email protected]_map$, strcharinfo(3); dispbottom ""+getcharid(1); getpartymember [email protected],1; getpartymember [email protected],2; set .team1, [email protected]; copyarray .party_name_desu[0], [email protected][0],128; while(set([email protected],[email protected]+1)<=.team1) { if(getmapxy([email protected]$,[email protected],[email protected],0,rid2name(.party_name_desu[[email protected]]))!=0) set .team1,.team1-1; if([email protected][email protected]_map$) set([email protected],[email protected]+1); } getpartymember [email protected],1; getpartymember [email protected],2; set .team2, [email protected]; copyarray .party_name_desu2[0], [email protected][0],128; while(set([email protected],[email protected]+1)<=.team2) { if(getmapxy([email protected]$,[email protected],[email protected],0,rid2name(.party_name_desu2[[email protected]]))!=0) set .team2,.team2-1; if([email protected][email protected]_map$) { set([email protected],[email protected]+1); } } if([email protected] >= 4 && .team1 >= 2 && .team2 >= 2) pvpon "guild_vs2"; end; OnPCDieEvent: if(strcharinfo(3)=="guild_vs2"&&getmapflag("guild_vs2",mf_pvp)) if(getcharid(1)[email protected]) if(!(set(.team1,.team1-1))) { dispbottom "Party 2 Wins"; pvpoff "guild_vs2"; while(set([email protected],[email protected]+1)<=getarraysize(.party_name_desu2)) getitem 501,1,.party_name_desu2[[email protected]]; deletearray .party_name_desu[0],128; deletearray .party_name_desu2[0],128; } else if(getcharid(1)[email protected]) if(!(set(.team2,.team2-1))) { dispbottom "Party 1 Wins"; pvpoff "guild_vs2"; while(set([email protected],[email protected]+1)<=getarraysize(.party_name_desu)) getitem 501,1,.party_name_desu[[email protected]]; deletearray .party_name_desu[0],128; deletearray .party_name_desu2[0],128; } } guild_vs2 mapflag loadevent Edited July 18, 2013 by HristDead Quote Link to comment Share on other sites More sharing options...
Dastgir Posted July 18, 2013 Share Posted July 18, 2013 dispbottom ""+getcharid(1); 2 lines after OnPCLoadMapEvent:. It displays the Party ID. Quote Link to comment Share on other sites More sharing options...
HristDead Posted July 18, 2013 Author Share Posted July 18, 2013 Thank you!! Solved. Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Share Posted July 18, 2013 Thank you!! Solved. Haha sorry about that it was a debug message T_T dispbottom ""+getcharid(1); 2 lines after OnPCLoadMapEvent:. It displays the Party ID. Thank you. Quote Link to comment Share on other sites More sharing options...
I'm using the script that Skorm made for me, but I am getting this number showing up as dispbottom message and I've no clue where its coming from...
I know it has to do with the map event because when I take that part out the number disappears. ><
Does anyone know whats causing this?
Here is the code:
Edited by HristDeadLink to comment
Share on other sites