Ariel Posted June 9, 2012 Author Share Posted June 9, 2012 *Sorry its on the wrong section :sad:*How do i check how much Gold a player have on there Inventory?I want to display it in the Gui.anther thing, I am trying to delete the 3rd Class. I change the INI that there will be 2 class but its doesn't works in game, i still can choose from all 3 of them :S Link to comment Share on other sites More sharing options...
Domino_ Posted June 9, 2012 Share Posted June 9, 2012 MaxClass= 3 change to 2 … :)---------------------| [INIT] || MaxClasses=2 |–------------------- Link to comment Share on other sites More sharing options...
Juke Posted June 9, 2012 Share Posted June 9, 2012 Reply for ''another thing''.In classes.ini there is a line ''MaxClasses'' or something.. should be obvious <.< Link to comment Share on other sites More sharing options...
Domino_ Posted June 9, 2012 Share Posted June 9, 2012 Do you have fresh copy of EO 2.0 ?Also what have you changed? Link to comment Share on other sites More sharing options...
Ariel Posted June 9, 2012 Author Share Posted June 9, 2012 im in [CS:DE] i forgot to say."anther thing, I am trying to delete the 3rd Class. I change the INI that there will be 2 class but its doesn't works in game, i still can choose from all 3 of them :S" already did what you say i write it….... Link to comment Share on other sites More sharing options...
Domino_ Posted June 9, 2012 Share Posted June 9, 2012 hmmmm… do same what im doing, its lot easyer and better for game development.... Dont Use CS:DE , Use EO 2.0 :)Cuz... lol if you cant even change information what begin read by server FROM ini file then how can u be possible edit source? o.O rlly, i suggest u eo 2.0 Link to comment Share on other sites More sharing options...
Ariel Posted June 9, 2012 Author Share Posted June 9, 2012 …. Im able to change it its just don't work. i have changed it before you told me, look i wrote it that i change the INI.its doesnt cancel the last class. but NVM with it.Im able to program mate, i have done manything already i just cant find the way of checking the amount of item a player have.Also im getting this weird Error 2147024769 Automation Error 0.o yesterday was fine What went wrong? :\ Link to comment Share on other sites More sharing options...
Synergy Posted June 9, 2012 Share Posted June 9, 2012 I know what Ariel means about classes; although the class is deleted (via the MaxClass), the GUI still allows you to move onto the third class (Whisperer by default) when creating a new character - however, I'm not 100% sure how you stop it from doing that. I did do it somehow, but can't remember what I did.And, gold is just an item so it would show in their inventory as per usual.Plus, you can look into that players .INI and (depending what number your gold is) it'll say something like:```InvNum1=XInvValue1=XXX```The 'X' being the item number for gold and 'XXX' being the amount of gold they have. Link to comment Share on other sites More sharing options...
Domino_ Posted June 9, 2012 Share Posted June 9, 2012 Just wtf guys ur …..... how to say.... " Slinki "GO SERVER SIDE:AND CHANGE```' *************' ** Classes **' *************Public Sub CreateClassesINI() Dim filename As String Dim File As String filename = App.Path & "\data\classes.ini" Max_Classes = 3 If Not FileExist(filename, True) Then File = FreeFile Open filename For Output As File Print #File, "[INIT]" Print #File, "MaxClasses=" & Max_Classes Close File End IfEnd Sub```TO```' *************' ** Classes **' *************Public Sub CreateClassesINI() Dim filename As String Dim File As String filename = App.Path & "\data\classes.ini" Max_Classes = 2 If Not FileExist(filename, True) Then File = FreeFile Open filename For Output As File Print #File, "[INIT]" Print #File, "MaxClasses=" & Max_Classes Close File End IfEnd Sub```~~p.s. just look in client now i know what u mean ill update this post… wait.~~Done…Find in client side: Public Sub DrawClassSelect()edit``` Select Case newCharClass Case 1 ' warrior Width = 426 height = 209 'EngineRenderRectangle Tex_GUI(23), x + 30, y + 34, 0, 0, width, height, width, height, width, height RenderTexture Tex_GUI(23), x + 30, y + 34, 0, 0, Width, height, Width, height Case 2 ' wizard Width = 441 height = 213 'EngineRenderRectangle Tex_GUI(24), x + 30, y + 33, 0, 0, width, height, width, height, width, height RenderTexture Tex_GUI(24), x + 30, y + 33, 0, 0, Width, height, Width, height Case 3 ' whisperer Width = 455 height = 212 'EngineRenderRectangle Tex_GUI(25), x + 30, y + 38, 0, 0, width, height, width, height, width, height RenderTexture Tex_GUI(25), x + 30, y + 38, 0, 0, Width, height, Width, height End Select```to``` Select Case newCharClass Case 1 ' warrior Width = 426 height = 209 'EngineRenderRectangle Tex_GUI(23), x + 30, y + 34, 0, 0, width, height, width, height, width, height RenderTexture Tex_GUI(23), x + 30, y + 34, 0, 0, Width, height, Width, height Case 2 ' wizard Width = 441 height = 213 'EngineRenderRectangle Tex_GUI(24), x + 30, y + 33, 0, 0, width, height, width, height, width, height RenderTexture Tex_GUI(24), x + 30, y + 33, 0, 0, Width, height, Width, height```I hope u know how cases work so i dont need to explain?p.s. thats for gui >.> messy engine cs:de xD ill take a look. . .Umm… done...Find``` Case 14 If curMenu = MENU_CLASS Then ' next class newCharClass = newCharClass + 1 If newCharClass > 3 Then newCharClass = 1 End If End If```change to``` Case 14 If curMenu = MENU_CLASS Then ' next class newCharClass = newCharClass + 1 If newCharClass > 2 Then newCharClass = 1 End If End If```So there will be only 2 classes avalable..All is client side! :)Wish u luck with this messy CS:DE draw system, but when you'r working more with it, its not so hard at all. :) ;) Link to comment Share on other sites More sharing options...
Ariel Posted June 9, 2012 Author Share Posted June 9, 2012 Thanks :)still i dont understand how to check how much Gold a player have the ITEMID is 1. Link to comment Share on other sites More sharing options...
Domino_ Posted June 9, 2012 Share Posted June 9, 2012 Code is same as eo but you just need render that, look how is rendering loc x and loc y when u type /loc in game and then just change x y and make check if inventory or char menu visible then that is visible too. Link to comment Share on other sites More sharing options...
Ariel Posted June 9, 2012 Author Share Posted June 9, 2012 I know how to render :) ill look into EO Thanks very much mate!edit:```RenderText Font_Default, Format$(GetPlayerInvItemValue(MyIndex, 1), "#,###,###,###"), 42, 79, White```Anychance youll help me with two last thing?I want to make the actionmsg on the battle show the DMG going up for 1 sec with full alpha before starting to fade:D cant find the way to do it .and im trying to make a profile on right clicking a player, I know how to draw it but i just can find were to call it :OEDIT: i made the profile :)) works fine. 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