Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Simple Noob Changing


hisherwin
 Share

Recommended Posts

Getting Annoyed by the Parry! that always shown when Monster attacking you?
Well i know this is just a Easy one but , For someone who doesn't know it here is the tutorial

Server-Side
on modCombat
Find This on Player Attacking NPC
```
        ' check if NPC can avoid the attack
        If CanNpcDodge(npcNum) Then
            SendActionMsg MapNum, "Dodge!", Pink, 1, (MapNpc(MapNum).Npc(mapNpcNum).x * 32), (MapNpc(MapNum).Npc(mapNpcNum).y * 32)
            Exit Sub
        End If
        If CanNpcParry(npcNum) Then
            SendActionMsg MapNum, "Parry!", Pink, 1, (MapNpc(MapNum).Npc(mapNpcNum).x * 32), (MapNpc(MapNum).Npc(mapNpcNum).y * 32)
            Exit Sub
        End If
```
Replace it with
```
        ' check if NPC can avoid the attack
        If CanNpcDodge(npcNum) Then
            SendActionMsg MapNum, "Missed!", Pink, 1, (MapNpc(MapNum).Npc(mapNpcNum).x * 32), (MapNpc(MapNum).Npc(mapNpcNum).y * 32)
            Exit Sub
        End If
        If CanNpcParry(npcNum) Then
            SendActionMsg MapNum, "Missed!", Pink, 1, (MapNpc(MapNum).Npc(mapNpcNum).x * 32), (MapNpc(MapNum).Npc(mapNpcNum).y * 32)
            Exit Sub
        End If
```
And still on the same mod , Find this at NPC Attacking Player
```
        ' check if PLAYER can avoid the attack
        If CanPlayerDodge(index) Then
            SendActionMsg MapNum, "Dodge!", Pink, 1, (Player(index).x * 32), (Player(index).y * 32)
            Exit Sub
        End If
        If CanPlayerParry(index) Then
            SendActionMsg MapNum, "Parry!", Pink, 1, (Player(index).x * 32), (Player(index).y * 32)
            Exit Sub
        End If
```
Replace it with
```
        ' check if PLAYER can avoid the attack
        If CanPlayerDodge(index) Then
            SendActionMsg MapNum, "Missed!", Pink, 1, (Player(index).x * 32), (Player(index).y * 32)
            Exit Sub
        End If
        If CanPlayerParry(index) Then
            SendActionMsg MapNum, "Missed!", Pink, 1, (Player(index).x * 32), (Player(index).y * 32)
            Exit Sub
        End If
```

You can change the "Missed!" Into something you would like.

Ehehe i think this is useless to Expert.
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...