Lollipopz Posted August 6, 2012 Author Share Posted August 6, 2012 Well I fully understand the event system and I'm good with it, already created some quests.But the problem is that I want to make quests where you have to kill a certain amount of mobs.I can't figure out how to make npcs modify a variable.So would it be possible to make a npc modify a variable once you kill it?And if yes, how? Link to comment Share on other sites More sharing options...
jcsnider Posted August 6, 2012 Share Posted August 6, 2012 Find the player attack npc sub in the server, find where in the sub it handles the npc dying and then you can insert some if, thens like..```If Npcnum = mobnum then player(attacker).variables(varnumber) = player(attacker).variables(varnumber) + 1end if```^^That is not REAL code. It might be close but I just typed that up as a slight example on how you WOULD do it. Link to comment Share on other sites More sharing options...
Lollipopz Posted August 8, 2012 Author Share Posted August 8, 2012 Alright gonna try to do that, but maybe it would be a good idea to add something like that to a future EO update?I'm sure a lot of developers would find that usefull. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now