Jump to content
  • 0

Pvp Announce Script Not Announce =(


Question

Posted

Hi, guys my inglish is very bad Sorry :( !!!! my script is: 

Quote

    -    script    PvPAnnounce    -1,{
OnPCKillEvent:
    getmapxy(.@mapa$,.@x,.@y,0);
    if (.@mapa$ != "force_3-2") end;
    if (rid2name(killedrid) == strcharinfo(0)) {
        mapannounce .@mapa$," The Player [" +strcharinfo(0) +"]  Has kill .",bc_blue;
    } else {
        mapannounce .@mapa$," The Player [" +strcharinfo(0) +"] Kill A [" +rid2name(killedrid) +"]",bc_blue;
        set Kill, Kill + 1;
        callfunc ("PvPRank",Kill,strcharinfo(0));
    } // End if
end;
}

but not announce, Help Pls =(

4 answers to this question

Recommended Posts

  • 0
Posted
22 hours ago, Mitosky said:

Hi, guys my inglish is very bad Sorry ? !!!! my script is: 

but not announce, Help Pls =(

show your whole script so that we can find what wrong.

  • 0
Posted
On 5/8/2020 at 12:31 PM, Mitosky said:

Hi, guys my inglish is very bad Sorry ? !!!! my script is: 

but not announce, Help Pls =(

Hi @Mitosky

For your information getmapxy has been updated at https://github.com/rathena/rathena/commit/26720f041a3cd0edbaa975bfc70345a30e9bf706

For your problem, you can't use getmapxy(.@mapa$,.@x,.@y,0) anymore.

You need to use BL_PC instead of 0 which will became getmapxy(.@mapa$,.@x,.@y,BL_PC)

	-	script	PvPAnnounce	-1,{
OnPCKillEvent:
    getmapxy(.@mapa$,.@x,.@y,BL_PC);
    if (.@mapa$ != "force_3-2") end;
    if (rid2name(killedrid) == strcharinfo(0)) {
        mapannounce .@mapa$," The Player [" +strcharinfo(0) +"]  Has kill .",bc_blue;
    } else {
        mapannounce .@mapa$," The Player [" +strcharinfo(0) +"] Kill A [" +rid2name(killedrid) +"]",bc_blue;
        set Kill, Kill + 1;
        callfunc ("PvPRank",Kill,strcharinfo(0));
    } // End if
end;
}

 

  • 0
Posted
On 5/9/2020 at 3:34 AM, HaARiZz said:

Hi @Mitosky

For your information getmapxy has been updated at https://github.com/rathena/rathena/commit/26720f041a3cd0edbaa975bfc70345a30e9bf706

For your problem, you can't use getmapxy(.@mapa$,.@x,.@y,0) anymore.

You need to use BL_PC instead of 0 which will became getmapxy(.@mapa$,.@x,.@y,BL_PC)


	-	script	PvPAnnounce	-1,{
OnPCKillEvent:
    getmapxy(.@mapa$,.@x,.@y,BL_PC);
    if (.@mapa$ != "force_3-2") end;
    if (rid2name(killedrid) == strcharinfo(0)) {
        mapannounce .@mapa$," The Player [" +strcharinfo(0) +"]  Has kill .",bc_blue;
    } else {
        mapannounce .@mapa$," The Player [" +strcharinfo(0) +"] Kill A [" +rid2name(killedrid) +"]",bc_blue;
        set Kill, Kill + 1;
        callfunc ("PvPRank",Kill,strcharinfo(0));
    } // End if
end;
}

 

Not work =(

  • 0
Posted
7 hours ago, Mitosky said:

Not work =(

It working without any problem in my server. Please put screenshot if you facing any error. I can't help you to solve the problem if you just simply said it "Not Work". 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...