| Mirage Source http://www.miragesource.net/forums/ |
|
| Give Item Directly To Player http://www.miragesource.net/forums/viewtopic.php?f=210&t=57 |
Page 1 of 1 |
| Author: | Tutorial Bot [ Thu Jun 01, 2006 9:39 pm ] |
| Post subject: | Give Item Directly To Player (Split) |
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! |
|
| Author: | Robin [ Mon Jul 03, 2006 6:46 am ] |
| Post subject: | |
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 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|