Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Grey ZOne
#1
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?
Reply
#2
Search for the text that is said when you died. Then you will find that Call PlayerMsg and just change the text and color.
Reply
#3
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?
Reply
#4
Post the code
Reply
#5
' 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
Reply
#6
You should not use Victim as the Index for both the killed and the killer. Check what more Index there is in that sub.
Reply
#7
i know i dont want vitim and victim it says i kill myself >> i was asking what i put in to change that
Reply
#8
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
Reply
#9
[Image: 76986237wo2.jpg]
that is what i am getting , any other help?
Reply
#10
heh, you need the sub: playerattackplayer (or something like that) and not npcattackplayer
Reply
#11
Since we're looking for the npcs name, instead of a players name, and we already have a variable that holds the npcs name, which is "Name"

Just replace

Code:
GetPlayerName(Attacker)

With

Code:
Name
Reply
#12
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 "
Reply
#13
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.
Reply
#14
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
Reply
#15
Post some code please.
Reply
#16
Code:
' Player is dead
        If Map(GetPlayerMap(Victim)).Moral = MAP_MORAL_ARENA Then
            Call GlobalMsg(GetPlayerName(Victim) & " was killed by a " & Name & "." & (GetPlayerName(Victim) & " ."), BrightRed)
        Else
            Call GlobalMsg(GetPlayerName(Victim) & " has been killed by " & Name, BrightRed)
        End If
Reply
#17
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)
Reply
#18
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 >>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)