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

Make NPCs give players items?


seppie
 Share

Recommended Posts

Hey. I'm still pretty new to EO, for those who've seen me around. :D

Anyway… Is it possible to make an NPC give a player an item? I wanna make it so one NPC will give you (the player) a sword, and another will give you a shield, and so forth... If you're familiar with RPG Maker, it would be similar to an event.

Thanks in advance!
Link to comment
Share on other sites

I think this…
```
StartItemCount=
StartItem1=1
StartValue1=1
StartItem2=2
StartValue2=1
```Is what I'm looking for.

Also, I'd like to know what quintensky said too. For example, there is a locked door. You need to find the owner of the house and get the key from him.Just an example.
Link to comment
Share on other sites

[http://www.touchofdeathforums.com/smf/index.php/topic,61017.msg643612.html#msg643612](http://www.touchofdeathforums.com/smf/index.php/topic,61017.msg643612.html#msg643612)

Try using that. It's a tutorial for scripted NPC's in EO. It's what I always use. But it can slow your game down a little bit.

If you're using scripted NPC's the code will have to be something like this if I'm correct:

```
Call PlayerMsg(attacker,  Take this item:", White)
GiveInvItem(attacker, itemid, itemamount)
```
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...