Mirage Source http://web.miragesource.net/forums/ |
|
Help with Grey ZOne http://web.miragesource.net/forums/viewtopic.php?f=201&t=1303 |
Page 1 of 15 |
Author: | zocheyado [ Sun Feb 04, 2007 4:03 pm ] |
Post subject: | Help with Grey ZOne |
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 <name> has been killed by <name>.<name> has been defeted in the arena....i wnat it to say <name> has been killed by <killer> 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? |
Author: | William [ Sun Feb 04, 2007 4:14 pm ] |
Post subject: | |
Search for the text that is said when you died. Then you will find that Call PlayerMsg and just change the text and color. |
Author: | zocheyado [ Sun Feb 04, 2007 4:23 pm ] |
Post subject: | |
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? |
Author: | William [ Sun Feb 04, 2007 4:53 pm ] |
Post subject: | |
Post the code |
Author: | zocheyado [ Sun Feb 04, 2007 4:55 pm ] |
Post subject: | |
' 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 |
Author: | William [ Sun Feb 04, 2007 6:16 pm ] |
Post subject: | |
You should not use Victim as the Index for both the killed and the killer. Check what more Index there is in that sub. |
Author: | zocheyado [ Sun Feb 04, 2007 6:32 pm ] |
Post subject: | |
i know i dont want vitim and victim it says i kill myself >> i was asking what i put in to change that |
Author: | Rian [ Sun Feb 04, 2007 7:03 pm ] |
Post subject: | |
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 |
Author: | zocheyado [ Sun Feb 04, 2007 7:22 pm ] |
Post subject: | |
that is what i am getting , any other help? |
Author: | Gilgamesch [ Sun Feb 04, 2007 7:29 pm ] |
Post subject: | |
heh, you need the sub: playerattackplayer (or something like that) and not npcattackplayer |
Author: | Rian [ Sun Feb 04, 2007 7:52 pm ] |
Post subject: | |
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
|
Author: | Rian [ Mon Feb 05, 2007 3:02 am ] |
Post subject: | |
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. |
Author: | zocheyado [ Mon Feb 05, 2007 3:03 am ] |
Post subject: | |
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 |
Author: | Rian [ Mon Feb 05, 2007 3:21 am ] |
Post subject: | |
Post some code please. |
Author: | zocheyado [ Mon Feb 05, 2007 3:29 am ] |
Post subject: | |
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 |
Author: | Rian [ Mon Feb 05, 2007 4:04 am ] |
Post subject: | |
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) |
Author: | zocheyado [ Mon Feb 05, 2007 5:08 am ] |
Post subject: | |
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 >> |
Author: | wanai [ Mon May 16, 2022 7:13 pm ] |
Post subject: | Re: Help with Grey ZOne |
kbps |
Author: | wanai [ Mon May 16, 2022 7:14 pm ] |
Post subject: | Re: Help with Grey ZOne |
49.5 |
Author: | wanai [ Mon May 16, 2022 7:15 pm ] |
Post subject: | Re: Help with Grey ZOne |
Repr |
Author: | wanai [ Mon May 16, 2022 7:16 pm ] |
Post subject: | Re: Help with Grey ZOne |
Repr |
Page 1 of 15 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |