Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Give Item Directly To Player
#1
Author: Dark Dragon
Difficulty: 1/5

:: SERVER SIDE ::
In modGameDatabase, under Sub AttackNPC, find:
Code:
' Drop the goods if they get it
        n = Int(Rnd * Npc(NpcNum).DropChance) + 1
        If n = 1 Then
              Call SpawnItem(Npc(NpcNum).DropItem, Npc(NpcNum).DropItemValue, MapNum, MapNpc(MapNum, MapNpcNum).x, MapNpc(MapNum, MapNpcNum).y)
        End If
Replace with:
Code:
' Drop the goods if they get it
        n = Int(Rnd * Npc(NpcNum).DropChance) + 1
        If n = 1 Then
              'Call SpawnItem(Npc(NpcNum).DropItem, Npc(NpcNum).DropItemValue, MapNum, MapNpc(MapNum, MapNpcNum).x, MapNpc(MapNum, MapNpcNum).y)
              Call GiveItem(Attacker, Npc(NpcNum).DropItem, Npc(NpcNum).DropItemValue)
        End If
That's all!
Reply
#2
If you add this, just make sure that if your inventory is full, it drops the item instead. Or many a rare item will be lost =o
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)