Jump to content
  • 0
HristDead

Where could this number be coming from?

Question

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?

 

9lk211.png

 

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 by HristDead
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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.

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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.