Jump to content
  • 0

Where could this number be coming from?


HristDead

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

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 .@usr_map$, strcharinfo(3);
        dispbottom ""+getcharid(1);
        getpartymember $@TeamID1,1; getpartymember $@TeamID1,2; set .team1, $@partymembercount;
        copyarray .party_name_desu[0], $@partymemberaid[0],128;
        while(set(.@f,.@f+1)<=.team1) {
            if(getmapxy(.@map$,.@x,.@y,0,rid2name(.party_name_desu[.@f-1]))!=0)
                set .team1,.team1-1;
            if(.@map$==.@usr_map$)
                set(.@i,.@i+1);
        }
        getpartymember $@TeamID2,1; getpartymember $@TeamID2,2; set .team2, $@partymembercount;
        copyarray .party_name_desu2[0], $@partymemberaid[0],128;
        while(set(.@h,.@h+1)<=.team2) {
            if(getmapxy(.@map$,.@x,.@y,0,rid2name(.party_name_desu2[.@h-1]))!=0)
                set .team2,.team2-1;
            if(.@map$==.@usr_map$) {
                set(.@i,.@i+1);
            }
        }
        if(.@i >= 4 && .team1 >= 2 && .team2 >= 2)
            pvpon "guild_vs2";
        end;

    OnPCDieEvent:
        if(strcharinfo(3)=="guild_vs2"&&getmapflag("guild_vs2",mf_pvp))
            if(getcharid(1)==$@TeamID1)
                if(!(set(.team1,.team1-1))) {
                    dispbottom "Party 2 Wins";
                    pvpoff "guild_vs2";
                    while(set(.@h,.@h+1)<=getarraysize(.party_name_desu2))
                        getitem 501,1,.party_name_desu2[.@h-1];
                    deletearray .party_name_desu[0],128; deletearray .party_name_desu2[0],128;
                }
            else if(getcharid(1)==$@TeamID2)
                if(!(set(.team2,.team2-1))) {
                    dispbottom "Party 1 Wins";
                    pvpoff "guild_vs2";
                    while(set(.@h,.@h+1)<=getarraysize(.party_name_desu))
                        getitem 501,1,.party_name_desu[.@h-1];
                    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


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

 dispbottom ""+getcharid(1);
 

2 lines after OnPCLoadMapEvent:.

It displays the Party ID.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

Thank you!! Solved. :)

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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