19-10-2008, 10:50 PM
Respawn the map.
Item Type Issue
|
19-10-2008, 10:50 PM
Respawn the map.
19-10-2008, 10:55 PM
Yeah, I noticed this for MS4 as well. After rebooting the server, the item will appear, but that's really inconvenient. :|
19-10-2008, 10:57 PM
Place the item. Send the map. Type /respawn.
19-10-2008, 11:10 PM
Try adding the respawn call to the packet that sends or saves the edit. Or add to the Send code on the btnOK on mapeditor
Code: packet = &SEP_CHAR & RESPAWN & SEP_CHAR & END_CHAR
19-10-2008, 11:20 PM
packet = &SEP_CHAR & RESPAWN & SEP_CHAR & END_CHAR
Call SendData(Packet)
19-10-2008, 11:31 PM
Sonire which do you think he should have that added to, the button or the packet?
19-10-2008, 11:33 PM
The button. For it to work properly, those two lines should be the last two lines in the button's code.
20-10-2008, 05:57 PM
By the way, just so you are aware it does not work unless you add another if statement, and Shadow the reload system does work, just do it and should do it if not pardon my wording but you fucked something up.
20-10-2008, 11:11 PM
He could also just be using the default blank sprite, which would cause him to not be able to see it after he respawns the map. I had the same problem, more so because I'm to lazy to change my item sprites.
21-10-2008, 12:03 AM
Wouldn't surprise me if that is his problem, he is slightly slow when it comes to that, try some pot might help.
21-10-2008, 07:20 PM
I tried it out on ms4 and ms3.0.3 he's just being a idiot, so do not worry about it DFA
21-10-2008, 07:30 PM
No it is an error. I have to type /respawn for it to update the items, which shouldn't have to be done.
21-10-2008, 07:46 PM
It's an easy fix. One that is easy, but perhaps not the best way of doing it, is to make it respawn, when you click send, from mapeditor
Code: Private Sub cmdSend_Click() Is what I put. Works fine.
21-10-2008, 07:51 PM
Yeah but that's not how it should be done
![]()
21-10-2008, 08:49 PM
I your that worried about it why not add something that calls the respawn the button or add it to the updatemap packet type that call the reload of the map.
21-10-2008, 08:58 PM
Because that's not the root of a problem, but merely a temporary solution.
21-10-2008, 09:50 PM
I fixed it for MS 3.59.
21-10-2008, 10:10 PM
If it's fixed in 3.59 why not just post the fix?
21-10-2008, 10:14 PM
[code]Function CanAttackPlayer(ByVal Attacker As Long, ByVal Victim As Long) As Boolean
CanAttackPlayer = False ' Check attack timer If GetTickCount < TempPlayer(Attacker).AttackTimer + 1000 Then Exit Function ' Check for subscript out of range If Not IsPlaying(Victim) Then Exit Function ' Make sure they are on the same map If Not GetPlayerMap(Attacker) = GetPlayerMap(Victim) Then Exit Function ' Make sure we dont attack the player if they are switching maps If TempPlayer(Victim).GettingMap = YES Then Exit Function ' Check if at same coordinates Select Case GetPlayerDir(Attacker) Case DIR_UP If Not ((GetPlayerY(Victim) + 1 = GetPlayerY(Attacker)) And (GetPlayerX(Victim) = GetPlayerX(Attacker))) Then Exit Function Case DIR_DOWN If Not ((GetPlayerY(Victim) - 1 = GetPlayerY(Attacker)) And (GetPlayerX(Victim) = GetPlayerX(Attacker))) Then Exit Function Case DIR_LEFT If Not ((GetPlayerY(Victim) = GetPlayerY(Attacker)) And (GetPlayerX(Victim) + 1 = GetPlayerX(Attacker))) Then Exit Function Case DIR_RIGHT If Not ((GetPlayerY(Victim) = GetPlayerY(Attacker)) And (GetPlayerX(Victim) - 1 = GetPlayerX(Attacker))) Then Exit Function Case Else Exit Function End Select ' Check if map is attackable If Not Map(GetPlayerMap(Attacker)).Moral = MAP_MORAL_NONE Then If GetPlayerPK(Victim) = NO Then Call PlayerMsg(Attacker, "This is a safe zone!", BrightRed) Exit Function End If End If ' Make sure they have more then 0 hp If GetPlayerVital(Victim, Vitals.HP) |
« Next Oldest | Next Newest »
|