Squiddle Posted December 7, 2008 Author Share Posted December 7, 2008 I made this post for my questions, so I'll keep them all here so to keep space on the forums. They are sorted by emoticons::bstar: Easy:star: Medium:rstar: Hard:help: Help Really NeededHere they are:1\. :bstar: Can I edit the health bar image like in Lostica?~~2\. :bstar: Where are all of the message colours located? I want to change all of the message colours to green, but I only changed a few since no all of them are located in the Main.txt. I can't find regular speech, when you pick up an item, when you buy an item, etc.~~~~3\. :star: This one's not really source. I need a script for a scripted tile that when you step on it, if finds your sprite and stores it, gives you a different sprite depending on what your original sprite was, and teleports you to a certain spot on the map.~~~~4\. :star: How can I make the menu switch if I press a key? Like, if I press _, it will switch to the inventory. I still need the one for options and character!5\. :star: How can I make the eclipse convert to using BMP? Because I have all of the layouts in BMP, but it won't accept them.6\. :bstar: How can I make it turn you back into the sprite depending on the variable it got from questions number 3? And would it still work if I logged out and came back in?7\. :star: How can I make is so that the menu's wont switch (Number 4) when you're speaking?~~8\. :rstar: :help: I used godlord's spell fix in the source edits section, but my paperdoll broke when it worked. I looked it up, and it says I have to DELETE ALL OF THE ACCOUNTS?! I have about 85 players registered, so how can I replace them without losing them forever?~~9. :bstar: Can someone link to a tutorial or tell me please on how to make a customized GUI pop up when you click on a scripted item? Thanks =).Those are all for now._~~ Link to comment Share on other sites More sharing options...
zade_o Posted December 7, 2008 Share Posted December 7, 2008 1..Yeah you can. It sounds easy enough. However I can't give you a full walkthrough on that one because I haven't actually tried it soooo… But yeah I would imagine you just have to Blit the image right before you blit the actual bar.2..umm... Open the Client project, and hit ctrl+f and change it to search whole project and search for the messages that haven't changed colors. Do the same in the server project file.3.. Open main.txt and search for ScriptedTiles. In your next open Case do this``` Case 0 Call PutVar("\Scripts\charextras\"&GetPlayerName(Index)&".ini","Sprite","normal",GetPlayerSprite(Index)) Call SetPlayerSprite(Index,whateverspriteyouneed) Call PlayerWarp(Index,mapnum,mapx,mapy)```and edit it to match your needs4..First you'll have to implement the press enter to talk code as found here:http://www.touchofdeathforums.com/smf/index.php/topic,28926.0.htmlOpen client project, go to frmMirage, look in the code for "form_KeyUp" and add this code``` If KeyCode = vbKeyI Then picInventory.Visible = True picGuildMember.Visible = False picEquipment.Visible = False picPlayerSpells.Visible = False picWhosOnline.Visible = False picGuildAdmin.Visible = False End If```Easy enough. Also easy to implement other functions for other keys. A list of key IDs can be found here:http://msdn.microsoft.com/en-us/library/0z084th3(VS.80).aspx Link to comment Share on other sites More sharing options...
Squiddle Posted December 7, 2008 Author Share Posted December 7, 2008 Wow thanks that's really helpful ^.^. Although for number 2, do you mean the client thing that you open to compile the project? And the same goes for the server? Link to comment Share on other sites More sharing options...
Tyr Posted December 7, 2008 Share Posted December 7, 2008 he means client.vbp and server.vpb (vbp = visual basic project)jsut search for BLACK or something and you will normally be send to a line where the color is black fromDON'T change the constonants, otherwise it will become a mess ^^just try it out… gl, Tyr Link to comment Share on other sites More sharing options...
Squiddle Posted December 7, 2008 Author Share Posted December 7, 2008 For number 4, is there a pic for characters and for options? Also, I can't find a client.vbp. I can find an Eclipse.vbp in the client folder, but it doesn't let me search it. Link to comment Share on other sites More sharing options...
Tyr Posted December 7, 2008 Share Posted December 7, 2008 right its Eclipse.vbp just go to a code window and then hit ctrl + F search for GREEN or something. Link to comment Share on other sites More sharing options...
Squiddle Posted December 7, 2008 Author Share Posted December 7, 2008 How come every time I try to compile the server it freezes and shuts down? It works for the client.*nvm it was just a compile error, I fixed it ^.^. Link to comment Share on other sites More sharing options...
Squiddle Posted December 7, 2008 Author Share Posted December 7, 2008 Also, for youre answer to number three, would that change to the same sprite no matter what sprite you already had, or would would it only work for the sprite it found? Link to comment Share on other sites More sharing options...
zade_o Posted December 8, 2008 Share Posted December 8, 2008 well for the sprite changing one I need a little more info to give you the exact script that you want. The script i posted up there will just save the players normal sprite and then change it to w/e you want. I need a little more info on how you want the player to change back. Like…do you want a timer? or another scripted tile to change them back? I can't script that much without more details.As for number 5\. Yes you can change them to BMP. Open the project file for the client... according to the main screen, this is the code for the pictures:```Private Sub Form_Load() Dim i As Long Dim result As Long Dim result1 As Long Dim result2 As Long result = SetWindowLong(txtChat.hWnd, GWL_EXSTYLE, WS_EX_TRANSPARENT) result = SetWindowLong(txtCmb.hWnd, GWL_EXSTYLE, WS_EX_TRANSPARENT) result = SetWindowLong(txtGuild.hWnd, GWL_EXSTYLE, WS_EX_TRANSPARENT) Dim Ending As String For i = 1 To 4 If i = 1 Then Ending = ".gif" If i = 2 Then Ending = ".jpg" If i = 3 Then Ending = ".png" If i = 4 Then Ending = ".bmp" If FileExists("GUI\800X600" & Ending) Then frmMirage.Picture = LoadPicture(App.Path & "\GUI\800X600" & Ending) End If Next iEnd Sub```So based on that, if you have them saved with the right name and a .bmp ending, it should automatically switch to the BMP file…number 7:you have to check if focus is on the chat box or not. I'm not 100% sure how to do this because I haven't gotten around to it yet. But it should be easy enough to google and whatnot. Link to comment Share on other sites More sharing options...
Squiddle Posted December 8, 2008 Author Share Posted December 8, 2008 I mean that if you step on the Scripted tile, lets say it finds that you're a zebra. It wil lgive you the sprite of a zebra in a car (Just work with me…). But lets say it find you're a lion. It will give you the sprite of a lion in a car. (Still, just work with me).Also, for number 5, do I need to have every GUI save in BMP for it to work? Because I only have like 3 of them done. Link to comment Share on other sites More sharing options...
Tyr Posted December 9, 2008 Share Posted December 9, 2008 well about your last question. (8)there is no way to do that, but i believe you didn't path it right? peoples will still be able to login. you have backups right?and if you really want to add it the only thing i can say is using the characted editor. log in on all the 85 accounts watch what they have (skills, skin, items, etc..) write it ALL down then delete all the accounts and remake them all with the same stats.its a long job actually, best of luck. Link to comment Share on other sites More sharing options...
Squiddle Posted December 9, 2008 Author Share Posted December 9, 2008 No backups, so, where can I find a character editor? Link to comment Share on other sites More sharing options...
Tyr Posted December 10, 2008 Share Posted December 10, 2008 i saw it somewere on the forums, let me get a link for you.couldn't find it quickly, i uploaded it for you.[http://files.filefront.com/CharEditorexe/;12610999;/fileinfo.html](http://files.filefront.com/CharEditorexe/;12610999;/fileinfo.html)its only 80kb :)hope this helped you out.- Tyr Link to comment Share on other sites More sharing options...
Squiddle Posted December 12, 2008 Author Share Posted December 12, 2008 OK, thanks, but I decided just to revert the spell fix back to it;s regular, but I'll keep the character editor =)> The fix doesn't work anyways… Link to comment Share on other sites More sharing options...
Squiddle Posted December 12, 2008 Author Share Posted December 12, 2008 OMG no it's still broken! Curse you Godlord and you're non working but instead virus scripts! Link to comment Share on other sites More sharing options...
Tyr Posted December 12, 2008 Share Posted December 12, 2008 lol squiddle chill, it also took me alot of time to fix it… did you try what i said?- write down the data for a character- delete the account with the character- remake it- and fill in the data yo uworte down with the char editor Link to comment Share on other sites More sharing options...
Squiddle Posted December 12, 2008 Author Share Posted December 12, 2008 No it's not just the paperdoll anymore, now the whole system is bugged. It's not saving, it lags severely, etc. Link to comment Share on other sites More sharing options...
Tyr Posted December 12, 2008 Share Posted December 12, 2008 oO looks like u made the problem even worse mate…well you can just wipe all the accounts, when ppl go and ask where is all my stuff! just give them a several amount of money in-game?i see no other way out.PS: you have a backup of your client and server right? Link to comment Share on other sites More sharing options...
Squiddle Posted December 13, 2008 Author Share Posted December 13, 2008 No 0.0\. Plus the thing wiped their accounts anyways, so I just started a new project. You can look at it in the WIP section =). Link to comment Share on other sites More sharing options...
Tyr Posted December 13, 2008 Share Posted December 13, 2008 yep just saw it, i lol'd at the tiles, but for the rest quite good.luckely you still have your maps :) Link to comment Share on other sites More sharing options...
The Oracle Posted December 13, 2008 Share Posted December 13, 2008 number 8: i would copy them and then delete it. THen paste them. If that doesn't work, then idk. Link to comment Share on other sites More sharing options...
Tyr Posted December 13, 2008 Share Posted December 13, 2008 its already to late for that :p Link to comment Share on other sites More sharing options...
Squiddle Posted December 15, 2008 Author Share Posted December 15, 2008 Can someone help me out with number 9? I want it so that when you use the scripted item, a customized chatbox ting pops up. It's like the one Mr.Miggu made (See script database), but only with an item. I want this because I had a really cool idea of an in-game collectible card game. You don't battle or anything, you just collect them by doing different tasks. And when you click on one in your inventory, it will display it on your screen. Also, for the non-JPG thing, was right? All you have to do is make every GUI a BMP? Then it will work? Link to comment Share on other sites More sharing options...
Tyr Posted December 15, 2008 Share Posted December 15, 2008 i know the full answer to 6, but first is the sprite variable obainted in the client of in the server?if in client i need to explain packets, in server i don't witch is quicker :) Link to comment Share on other sites More sharing options...
Squiddle Posted December 15, 2008 Author Share Posted December 15, 2008 Well, I'm not sure which one I should. I think I'll go with server, because it's quicker, and more organized =). Also please help with number 9 ASAP, while I still have the motive with the idea. 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