hey everyone i had a freind start to make a GREy and a BLUE zone , the blue zone u died and lost 1/3 ur EXP and GREY u could die but u would lose nothing , my freind assumed the grey area was for an arena so he named it arena and when i die it says has been killed by . has been defeted in the arena....i wnat it to say has been killed by and i dont want a red name , and i know this is kinda a lot, but i know it wont take anyone with some skill more then 10 mins and it is almost stopping production on my game so could anyone do that for me please?
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Search for the text that is said when you died. Then you will find that Call PlayerMsg and just change the text and color.
i did it i found it changed the text and color but there is one more thing it says getplayername (victim) on BOTH sides of the txt should i change number 2 to stop it from saying i killed myslef?
' Player is dead
If Map(GetPlayerMap(Victim)).Moral = MAP_MORAL_ARENA Then
Call GlobalMsg(GetPlayerName(Victim) & " was killed by " & GetPlayerName(Victim) & "." & (GetPlayerName(Victim) & " lost no EXP."), BrightRed)
Else
Call GlobalMsg(GetPlayerName(Victim) & " has been killed by " & GetPlayerName(Victim), BrightRed)
End If
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
You should not use Victim as the Index for both the killed and the killer. Check what more Index there is in that sub.
i know i dont want vitim and victim it says i kill myself >> i was asking what i put in to change that
you need to change it to attacker. This should work.
' Player is dead
If Map(GetPlayerMap(Victim)).Moral = MAP_MORAL_ARENA Then
Call GlobalMsg(GetPlayerName(Victim) & " was killed by " & GetPlayerName(Attacker) & "." & (GetPlayerName(Victim) & " lost no EXP."), BrightRed)
Else
Call GlobalMsg(GetPlayerName(Victim) & " has been killed by " & GetPlayerName(Attacker), BrightRed)
End If
heh, you need the sub: playerattackplayer (or something like that) and not npcattackplayer
omg this is sooo close i got it narrowd down now it works it says " has been killed by but then after that it says "
I think the code you want is just below what you've circled. It's hard to tell. I don't really get what you're saying about EXP, and it's really easier if you post code instead of screen shots.
when i die it says "omally has been killed by a pigon. omally has lost no exp, im trying to get rid of that last part
you could change it to this:
If Map(GetPlayerMap(Victim)).Moral = MAP_MORAL_ARENA Then
Call GlobalMsg(GetPlayerName(Victim) & " has been killed by " & Name, BrightRed)
Else
Call GlobalMsg(GetPlayerName(Victim) & " has been killed by " & Name, BrightRed)
End If
Or, most simply, remove all that and just add this:
' Announce Players Death
Call GlobalMsg(GetPlayerName(Victim) & " has been killed by " & Name, BrightRed)
yes that worked thank u... now only if somone wants to help me with my yellow and blue maps...yellow droping 10% gold and blue dropping all EQ and 1 randome item...they are already made but....right now blue just spawns a item from the item list and puts it there >> and yellow dosnt work at all >>