Zeno Posted December 15, 2008 Share Posted December 15, 2008 Also for #6 if it's stored client-side the player can switch the number to give themselves whatever sprite they want.For both tiles:(This one was posted a few posts back. How you're doing this tile effects the other tile)Changes the sprite (you still need to set the sprite number)``` Case 0 Call PutVar("\Scripts\charextras\"&GetPlayerName(Index)&".ini","Sprite","normal",GetPlayerSprite(Index)) Call SetPlayerSprite(Index, sprite#) Call PlayerWarp(Index, GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index)) Exit Sub```Sets the player's Sprite back to the original:```Case 1 Call SetPlayerSprite(Index, GetVar("\Scripts\charextras\"&GetPlayerName(Index)&".ini","Sprite","normal")) Exit Sub``` Link to comment Share on other sites More sharing options...
Tyr Posted December 15, 2008 Share Posted December 15, 2008 everything in time, first 6: here you goas the variable is in the server no need for packets :)Server:now add under the line where you save the variable this line (creates ini)```WriteINI("SPRITE", "Value", YOUR SPRITE VARIABLE, App.Path & "\Accounts\Sprites\" & Getplayername(Index) & ".ini")```make sure you create a Sprites folder in your Accounts folder.this saves the variable in a extern ini file, witch makes it possible to load it another time (you don't loose it while loggin out)server:when you want to make the sprite return to his original one (you saved) add this```dim origsprite as longorigsprite = ReadINI("SPRITE", "Value", App.Path & "\Accounts\Sprites\" & Getplayername(Index) & ".ini")Call SetPlayerSprite(Index, origsprite)```there u go!now, i didn't check this: there might be some spelling mistakes or something if you have any further issues contact me ^^- TyrEDIT: lol Zeno posted while i was writing this ^^ Link to comment Share on other sites More sharing options...
Squiddle Posted December 15, 2008 Author Share Posted December 15, 2008 Ok, thanks ^.^. Now I could use help with #9 please. Link to comment Share on other sites More sharing options...
Tyr Posted December 16, 2008 Share Posted December 16, 2008 pretty easy, but you want it in source or in sadscript?and what does it needs to display?PS: you forgot to put a line on number 6 lol Link to comment Share on other sites More sharing options...
Squiddle Posted December 16, 2008 Author Share Posted December 16, 2008 Yeah lol I haven't tested it out yet XD. I want the item to display a GUI in the cnter of the screen, from under the CUSTOM folder in the GUI's folder. I'd prefer in sadscript, because then I don't have to compile with every new card lol. Link to comment Share on other sites More sharing options...
Tyr Posted December 17, 2008 Share Posted December 17, 2008 so a source code that displays an form with as image one from the GUI folder?or a form from the gui folder, then this will be sadscript (i don't know sadscript very well, but i can look up the code for you)also… what does the card needs to display? Link to comment Share on other sites More sharing options...
Marsh Posted December 17, 2008 Share Posted December 17, 2008 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.It already uses bmp if your talking about the GUi just rename the extension it can use gif bmp or jpg. Link to comment Share on other sites More sharing options...
Squiddle Posted December 17, 2008 Author Share Posted December 17, 2008 Marsh: Thanks =).Tyr: Ok, I have an item in the game. It's just an item. I want to script it so it displays a picture in the center of the screen when used (Scripted item). If you look in the scripting database, you'll ifnd Mr.Miguu's script which shows an image, that's what I want except I want it in scripted item form, not scripted tile. Link to comment Share on other sites More sharing options...
unnown Posted December 17, 2008 Share Posted December 17, 2008 either teleport them to an map that show the image (just tiles) otherwise… you might try showimage although i'm not sure if it works:P Link to comment Share on other sites More sharing options...
Tyr Posted December 17, 2008 Share Posted December 17, 2008 well thats sadscript… and what about copying Mr.Mirgui's line and edit it the way you want it?looks pretty simple... but as i said i'm a source guy :p 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