wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 Could anybody please make a script for me with does the following:First, it checks if you have a specific item. If you have the required item, there is a one on 4 chance you will get another item. If u don't get the item, a text will be shown saying you didn't get the item. If you dont have the required item a text will be shown saying you don't have it Link to comment Share on other sites More sharing options...
Ruins of Hell Posted February 19, 2011 Share Posted February 19, 2011 This is the "Questions & Answers" board. As such, we don't provide direct help but we do try to help you. So no, we will not make the script for you, although you could try and then request help. Link to comment Share on other sites More sharing options...
wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 @Soul:> This is the "Questions & Answers" board. As such, we don't provide direct help but we do try to help you. So no, we will not make the script for you, although you could try and then request help.I actually also tried it. Now I need a line of script wich checks if the player has a specific item. Could you please give it? That's the only thing I need now to finish my script. Link to comment Share on other sites More sharing options...
wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 … Please? Link to comment Share on other sites More sharing options...
frankpetrov Posted February 19, 2011 Share Posted February 19, 2011 not sure exactly…. but I think you have to use this Item(GetPlayerInvItemNum(MyIndex, InvNum)) Link to comment Share on other sites More sharing options...
wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 @frankpetrov:> not sure exactly…. but I think you have to use this Item(GetPlayerInvItemNum(MyIndex, InvNum))I don't get it. If I want to make it like the player needs a item with the ID 2, what does the code have to be? Would really appreciate it if someone could just place the code for only that here. Link to comment Share on other sites More sharing options...
Joyce Posted February 19, 2011 Share Posted February 19, 2011 For EO it would be:```If HasItem(Index,2) = 1 Then End If```And for lolz..```If HasItem(Index,2) = 1 Then  If Rand(1,4) = 4 then     Call GiveInvItem(Index,???,!!!)     Call PlayerMsg(Index, "You received an item!", Yellow)  Else     Call PlayerMsg(Index, "You did not receive an item. :(", BrightRed)  End IfEnd If```??? = Item ID!!! = Item Amount Link to comment Share on other sites More sharing options...
wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 @Yami:> For EO it would be:> ```> If HasItem(Index,2) =Â 1 Then> End If> ```I'm using Eclipse Stable. Link to comment Share on other sites More sharing options...
Joyce Posted February 19, 2011 Share Posted February 19, 2011 @Wawahoe:> I'm using Eclipse Stable.Ugh, why god why?I completely erased that piece of crap from my memory, so can't help you there. Sorry. Link to comment Share on other sites More sharing options...
wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 Why? Well, it doesn't support the most important part of a game. Scripting. Link to comment Share on other sites More sharing options...
Joyce Posted February 19, 2011 Share Posted February 19, 2011 Actually it does, just not from a slow as crap text file.. It's built into the server, and requires some more thinking when adding stuff. :) Anyways, this is not a discussion on which one is better. I hope someone can answer your question. ^^' Link to comment Share on other sites More sharing options...
wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 Uhm, anybody? Please? It's just one row of code I'm asking for :(. Link to comment Share on other sites More sharing options...
iSKweek Posted February 19, 2011 Share Posted February 19, 2011 It would be similar to the code Yami posted, just find the equivalents of hasitem and giveitem in stable. Link to comment Share on other sites More sharing options...
wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 I still don't understand it :S Link to comment Share on other sites More sharing options...
iSKweek Posted February 19, 2011 Share Posted February 19, 2011 Then get EO so we can help or post your question in the scripting sub-forum. Link to comment Share on other sites More sharing options...
frankpetrov Posted February 19, 2011 Share Posted February 19, 2011 @iSkweek:> Then get EO so we can help or post your question in the scripting sub-forum.Yeah. I'm not generally a prick about things and I don't mean to come across as one, but if you check the FAQs, only EO is in dev and so you shouldn't expect support from any other version. Link to comment Share on other sites More sharing options...
wawahoe123 Posted February 19, 2011 Author Share Posted February 19, 2011 Oh, god, FINALLY. The required script was "If CanTake". Now I FINALLY have a resource script! 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