Thread: Few questions [pi] [317] [divine fate base]

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Few questions [pi] [317] [divine fate base] 
    Registered Member
    Join Date
    Sep 2013
    Posts
    285
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    first question is there away to add something that checks armor worn to make sure they aren't wearing any to enter this mini game, something like checkinven

    Code:
    		} else if (c.dialogueAction == 905) {    // dung mini game
    			if (c.getItems().freeSlots() >= 28) {

    Second question is how to make an area multi? I went to npc.java and player.java and added cords correctly and area is still not multi. I spawned 2 hell hounds and I couldn't attack both.


    NPC.java code

    Code:
     || absY >= 9855 && absY <= 9820 && absX >= 3128 && absX <= 3093
    PLAYER.java code

    Code:
     && absY >= 9855 && absY <= 9820 && absX >= 3128 && absX <= 3093
    --------------------------------------------------------------------------------------

    Third how to make it where if you can't tele from an area, and click an object or log out it deletes your inventory and items worn and takes you home. <- mini game purposes.


    ----------------------------------------------------------------------------------------

    A NEW QUESTION-

    Decided to throw in another question since no one anwser yet. If I want to make a new mini game type thing, will I have to make a new file and everything?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2013
    Posts
    285
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Anyone know?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    For equipments, loop through all the equipment slots.. Well I've already done that myself as you're using my source.. Just look through things. I know there should be an example in the prestige classes.

    Second, you got the right idea, but you probably done know how to do the areas.. You have to get the south west and north east coordinates of the area you want to be multi and yeah

    Don't understand what you mean

    No you don't have to make a new class lol.. It's really up to you whether you want to or not, but I'd suggest youdo so if you plan on adding a lot of code for it
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2013
    Posts
    285
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Karma_K View Post
    For equipments, loop through all the equipment slots.. Well I've already done that myself as you're using my source.. Just look through things. I know there should be an example in the prestige classes.

    Second, you got the right idea, but you probably done know how to do the areas.. You have to get the south west and north east coordinates of the area you want to be multi and yeah

    Don't understand what you mean

    No you don't have to make a new class lol.. It's really up to you whether you want to or not, but I'd suggest youdo so if you plan on adding a lot of code for it
    can you help me set up a class, btw this mini game is going to be waved based.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Lol..

    Package declaration

    Class declaration

    Constructor if you don't think/want it to be static accessed

    Methods/ints/booleans/enums/arrays/etc..
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Sep 2013
    Posts
    285
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Karma_K View Post
    Lol..

    Package declaration

    Class declaration

    Constructor if you don't think/want it to be static accessed

    Methods/ints/booleans/enums/arrays/etc..
    My last question, i meant to ask. can i make a wave based game with out making a new file/class thing.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2013
    Posts
    880
    Thanks given
    43
    Thanks received
    57
    Rep Power
    58
    Quote Originally Posted by lrig View Post
    My last question, i meant to ask. can i make a wave based game with out making a new file/class thing.
    like he said... anything's possible, you could say making seperate classes are to just organize your work.. you could have everything bunched up into one file if you wanted, but that would be ugly af
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Sep 2013
    Posts
    285
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by The Reason View Post
    like he said... anything's possible, you could say making seperate classes are to just organize your work.. you could have everything bunched up into one file if you wanted, but that would be ugly af

    I just f'ed myself...

    this code was working then I tried adding something and it messed up so I deleted that now it wont work anymore

    Code:
     		} else if (c.dialogueAction == 905) {    // dung mini game
    			if (c.getItems().freeSlots() >= 28); {
    				c.getPA().movePlayer(3117, 9850, 0);
    				c.getItems().addItem(4810, 1);
    				c.sendMessage("Your ruined back pack has gear.");
    				c.sendMessage("Package gives unlimited rocktails.");
    				c.sendMessage("Prayer mix gives unlimited prayer flasks.");
    				c.sendMessage("Good luck.");
    			} else {
    				c.sendMessage("You must have nothing in inventory or equipped.");
    			}
    			c.getPA().removeAllWindows();
    the other } is at the start of next code, but here is the compiler error.

    Code:
    src\game\net\packets\dialoguebuttons\twooptions.java:185: error: 'else' without 'if' 
                                                       } else {
                                                          ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Sep 2013
    Posts
    880
    Thanks given
    43
    Thanks received
    57
    Rep Power
    58
    Quote Originally Posted by lrig View Post
    I just f'ed myself...

    this code was working then I tried adding something and it messed up so I deleted that now it wont work anymore

    Code:
     		} else if (c.dialogueAction == 905) {    // dung mini game
    			if (c.getItems().freeSlots() >= 28); {
    				c.getPA().movePlayer(3117, 9850, 0);
    				c.getItems().addItem(4810, 1);
    				c.sendMessage("Your ruined back pack has gear.");
    				c.sendMessage("Package gives unlimited rocktails.");
    				c.sendMessage("Prayer mix gives unlimited prayer flasks.");
    				c.sendMessage("Good luck.");
    			} else {
    				c.sendMessage("You must have nothing in inventory or equipped.");
    			}
    			c.getPA().removeAllWindows();
    the other } is at the start of next code, but here is the compiler error.

    Code:
    src\game\net\packets\dialoguebuttons\twooptions.java:185: error: 'else' without 'if' 
                                                       } else {
                                                          ^
    1 error
    Press any key to continue . . .
    you're still missing a bracket or have too many.. use eclipse..
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Sep 2013
    Posts
    285
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by The Reason View Post
    you're still missing a bracket or have too many.. use eclipse..
    I went to eclipse website, so many different versions. I didn't know which to pick, maybe you can help me on skype? my name is "candysueme"

    btw I had an extra ";"
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 11-03-2013, 11:00 PM
  2. 317 [Divine-Fate] Deadlock Fix
    By Wobblum in forum Help
    Replies: 4
    Last Post: 09-21-2013, 07:48 PM
  3. [317]few questions
    By brendan s in forum Help
    Replies: 1
    Last Post: 10-22-2010, 04:53 AM
  4. few questions about java && 317 server
    By PasiipaZ in forum Help
    Replies: 5
    Last Post: 07-19-2009, 06:48 PM
  5. few questions for beginner 317 coder
    By Dei Esercito in forum Help
    Replies: 11
    Last Post: 01-29-2009, 01:02 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •