ondalor Posted July 19, 2012 Author Share Posted July 19, 2012 Hello I am LonnieI have had a Eclipse server for a long time (sience 2009)It Is an EE 2.8 server that has several small simple scripted quests but recently i lost my server and had to start fresh. Any help with restoring the quests would be appreciatedĀ this is what i have sofar:I have placed these in my Main.txt' Gives and takes itemsSub TakeItem(index, item, value)If value = "all" ThenSLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = item ThenCall SetPlayerInvItemNum(index, SLOT, 0)Call SetPlayerInvItemValue(index, SLOT, 0)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd SubElseSLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = item ThenCall SetPlayerInvItemNum(index, SLOT, 0)Call SetPlayerInvItemValue(index, SLOT, GetPlayerInvItemValue(index, SLOT) - value)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd SubEnd IfSub GiveItem(index, item, value)SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = 0 ThenCall SetPlayerInvItemNum(index, SLOT, item)Call SetPlayerInvItemValue(index, SLOT, value)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd SubWhat i need now is the method to check if an item is in a players inventory. I Used to use:If CantTakeItem = true thenor something of the sort but i have forgotten :( please i know it says EE isnt supported but any help is appreciated. Link to comment Share on other sites More sharing options...
ondalor Posted July 20, 2012 Author Share Posted July 20, 2012 This shoud work i beive but it doesnt seem to. why?Sub CanTake(index, item, value)CanTake = falseSLOT = 1Do While SLOT < 24If CanTake(index, SLOT) = item ThenCanTake = trueSLOT = 24End IfSLOT = SLOT+1LoopEnd Sub Link to comment Share on other sites More sharing options...
hisherwin Posted July 20, 2012 Share Posted July 20, 2012 What version of eclipse your using at? Link to comment Share on other sites More sharing options...
ondalor Posted July 20, 2012 Author Share Posted July 20, 2012 Its Eclipse Evolution Link to comment Share on other sites More sharing options...
Ruins of Hell Posted July 20, 2012 Share Posted July 20, 2012 We don't offer support for any versions of Eclipse older than Eclipse Origins. 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