Anyone know?
|
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
PLAYER.java codeCode:|| absY >= 9855 && absY <= 9820 && absX >= 3128 && absX <= 3093
--------------------------------------------------------------------------------------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?
Anyone know?
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
Lol..
Package declaration
Class declaration
Constructor if you don't think/want it to be static accessed
Methods/ints/booleans/enums/arrays/etc..
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
the other } is at the start of next code, but here is the compiler error.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();
Code:src\game\net\packets\dialoguebuttons\twooptions.java:185: error: 'else' without 'if' } else { ^ 1 error Press any key to continue . . .
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |