Jump to content

OnPCKillEvent mit Broadcast


Pysk

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  234
  • Reputation:   8
  • Joined:  01/19/12
  • Last Seen:  

Hallo.

Ich wollte das PvP etwas besser gestalten.

Das ganze soll so funktioniere das auf der PvP Map ein Broadcast kommt wenn ein Spieler das zeitliche gesegnet hat.

Das ganze funktioniert auch schon ganz gut.

Ich habe das mal so gemacht:

-	script	pvp	-1,{
OnPCKillEvent:
areaannounce "hard_pvp.gat",0,0,200,200,"Hier der Text",0;
end;
}

So wer das oben verstanden hat weiß natürlich das es so zwar geht aber leider einen Fehler hat.

Es soll natürlich so sein das der Broadcast nur kommt wenn jemand auf der PvP Map getötet wird.

Bei meiner Variante kommt das Broadcast auf der map hrd_pvp aber leider ist es egal wo ich sterbe. Sprich ich sterbe in Prontera durch einen anderen Spieler und der Broadcast kommt auf der map hard_pvp was ja wenig Sinn macht.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

-	   script  pvp	 -1,{
OnPCKillEvent:

if(strcharinfo(3) == "hard_pvp") {
mapannounce "hard_pvp",rid2name(killerrid) +" just killed "+ strcharinfo(0)+".",0;
	end;
}
}

Edited by F0xxy
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  234
  • Reputation:   8
  • Joined:  01/19/12
  • Last Seen:  

Danke ihr 2

Das von F0xxy klappt nach dem Edit sehr gut und kann sogar mehr als ich wollte.

Das andere geht auch^^

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
Reply to this topic...

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