Jump to content
  • 0

Pvp Announce Script Not Announce =(


Mitosky

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.02
  • Content Count:  67
  • Reputation:   0
  • Joined:  10/22/19
  • Last Seen:  

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 =(

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   12
  • Joined:  03/18/20
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   12
  • Joined:  01/13/12
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.02
  • Content Count:  67
  • Reputation:   0
  • Joined:  10/22/19
  • Last Seen:  

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 =(

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   12
  • Joined:  01/13/12
  • Last Seen:  

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

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