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

EO2 - Item drops


chuchoide
 Share

Recommended Posts

@DshWinchester:

> search this part in sub PlayerAttackNpc
>
> > If n > 0 Then
> >                 Call SetPlayerExp(n, GetPlayerExp(n) + Exp)
> >                 SendEXP n
> >                 SendActionMsg GetPlayerMap(n), "+" & Exp & " EXP", White, 1, (GetPlayerX(n) * 32), (GetPlayerY(n) * 32)
> >             End If
> >         End If
>
> after that
>
> add this
>
> > n = Int(Rnd * Npc(NpcNum).DropChance) + 1
> >
> >         If n = 1 Then
> >             Call SpawnItem(Npc(NpcNum).DropItem, Npc(NpcNum).DropItemValue, MapNum, MapNpc(MapNum).Npc(MapNpcNum).x, MapNpc(MapNum).Npc(MapNpcNum).y)
> >         End If
Link to comment
Share on other sites

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...