![]() |
Help with Grey ZOne - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Help with Grey ZOne (/showthread.php?tid=710) |
Help with Grey ZOne - zocheyado - 04-02-2007 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? - William - 04-02-2007 Search for the text that is said when you died. Then you will find that Call PlayerMsg and just change the text and color. - zocheyado - 04-02-2007 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? - William - 04-02-2007 Post the code - zocheyado - 04-02-2007 ' 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 - William - 04-02-2007 You should not use Victim as the Index for both the killed and the killer. Check what more Index there is in that sub. - zocheyado - 04-02-2007 i know i dont want vitim and victim it says i kill myself >> i was asking what i put in to change that - Rian - 04-02-2007 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 - zocheyado - 04-02-2007 ![]() that is what i am getting , any other help? - Gilgamesch - 04-02-2007 heh, you need the sub: playerattackplayer (or something like that) and not npcattackplayer - Rian - 04-02-2007 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 - zocheyado - 05-02-2007 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 " - Rian - 05-02-2007 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. - zocheyado - 05-02-2007 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 - Rian - 05-02-2007 Post some code please. - zocheyado - 05-02-2007 Code: ' Player is dead - Rian - 05-02-2007 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) - zocheyado - 05-02-2007 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 >> |