Jed Posted February 16, 2009 Author Share Posted February 16, 2009 ok, so i am working on something for like when you die, you have a choice to resurrect or wait for revival. just to let you know, i am using Homicidal Monkey(a.k.a. [Null]Simius Cruentus) alternate OnDeath Sub. he made it so when you die, you turn into a dead sprite, such as a ghost. i am trying to add to that, making it have a custom GUI pop up giving you a decision to make. im not sure i should post it here, considering the fact someone else might try to steal it and use it for themselves. i just need the script to make it when you die, the GUI pops up. i dont think the alternate ondeath really matters though, i just cant seem to figure it out… Link to comment Share on other sites More sharing options...
Dark_Marine_123 Posted February 16, 2009 Share Posted February 16, 2009 @Ezmek:> im not sure i should post it here, considering the fact someone else might try to steal it and use it for themselves.Like who blizzard entertainment?Just do a scripted menu, not hard at all Link to comment Share on other sites More sharing options...
Jed Posted February 16, 2009 Author Share Posted February 16, 2009 yes, but how would i make it so that the buttons work? i know how to make a scripted menu, but i just need to know how to make the buttons active. Link to comment Share on other sites More sharing options...
Tyr Posted February 16, 2009 Share Posted February 16, 2009 pretty simple, go to the on death sub and add to the bottom of it a packet that is sended to the client.example: call senddata(Index, "ressurect" & END_CHAR)_note: of course you can do more with this packet, but this is the basic one_the in the client add at the bottom of the handledata moduleif casestring = "ressurect" then frmMirage.picRessurect.visible = true exit subend ifthis will make a box pop up when you die, when you want actions to the butto,s, go the other way around. when clicking button A send data to the server to process etc…its pretty simple actually, or is it only for me?hope this gave you a basic idea of making a box pop up etc..- Tyr Link to comment Share on other sites More sharing options...
Jed Posted February 16, 2009 Author Share Posted February 16, 2009 aww, man. ok, i just want to give you the basic info. the Custom GUI itself is called "Resurrect.bmp".do i need to make separate .bmp files to put on the GUI? or can i just leave it at that. Link to comment Share on other sites More sharing options...
Dark_Marine_123 Posted February 16, 2009 Share Posted February 16, 2009 Woah you dont have to write a whole source mod, this one take only a couple lines of script. Link to comment Share on other sites More sharing options...
Tyr Posted February 17, 2009 Share Posted February 17, 2009 oh, you guys want this to be in sadscript -_-"gosh, i wonder why this still exists.- for my code above, make a new picturebox in frmMirage and load Ressurect.bmp into it. (call the picturebox picRessurect.- visible = falseand make sure that there is a close button on the image with this code frmMirage.picRessurect.visible = falsesourcing is way more efficient to me… or is that because i never used sadscript? :) Link to comment Share on other sites More sharing options...
Hippoman789 Posted February 17, 2009 Share Posted February 17, 2009 1\. you should put it in code so he can copy and paste it.2\. this should be in Script request. Link to comment Share on other sites More sharing options...
Tyr Posted February 17, 2009 Share Posted February 17, 2009 @[BS:> Hippoman link=topic=38763.msg376462#msg376462 date=1234849941]> 1\. you should put it in code so he can copy and paste it.> 2\. this should be in Script request.1\. no way, i'm not giving codes away to copy and paste, once i do that i get to many requests in PM… he has to find himself how to do it, with this basic help i gavei can do it2\. not true, as this can be sourced or sadscripted, looks like he didn't know yet. Link to comment Share on other sites More sharing options...
Dark_Marine_123 Posted February 17, 2009 Share Posted February 17, 2009 @Tyr:> 1\. no way, i'm not giving codes away to copy and paste, once i do that i get to many requests in PM…> he has to find himself how to do it, with this basic help i gavei can do it> > 2\. not true, as this can be sourced or sadscripted, looks like he didn't know yet.This is scripting request, not source anyway.Now look for this bit of codeCase 3Call PlayerMsg(Index, "Clicked label number " & Clicked_Index & " on the menu named " & MenuTitle, YELLOW)This is pretty much an example for how to make it right here, all you have to do is make a label and when you click it, Case 3 runs. When Case 3 runs, automaticly it mentions this message because it doesnt look for a specific Label, or Menu name.Start with this```Call CustomMenuShow(index, "Rez Choice", "\GUI\CUSTOM\Rez.bmp", 1)Call CustomMenuLabel(index, 1, "Would you like to revive?", 150, 50, 10, BRIGHTGREEN, 0, 400, 20)Call CustomMenuLabel(index, 2, "Yes", 20, 100, 10, BRIGHTCYAN, 0, 80, 20)Call CustomMenuLabel(index, 3, "No" , 60, 100, 10, BRIGHTCYAN, 0, 100, 20)```Play with the numbers yourself, but you should see where this is going Link to comment Share on other sites More sharing options...
Tyr Posted February 17, 2009 Share Posted February 17, 2009 aww my bad, i thought it was in general questions.Riney helped you anyway :)(but keep in mind that source editing is way more efficient…) Link to comment Share on other sites More sharing options...
Dark_Marine_123 Posted February 17, 2009 Share Posted February 17, 2009 @Tyr:> aww my bad, i thought it was in general questions.> Riney helped you anyway :)> > (but keep in mind that source editing is way more efficient…)Oh so agreeable ;o Especially for that pesky log out button… (Example, "ARE YOU SURE YOU WANNA LOGOUT AND LOSE ALL YOUR MAPPING DATA CAUSE YOU ACCIDENTLY CLICKED ME?" "Yes" "No") Link to comment Share on other sites More sharing options...
Jed Posted February 18, 2009 Author Share Posted February 18, 2009 ok, i uploaded my bmp image:![](http://i42.tinypic.com/1zbsymc.jpg) 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