If you're pretty good at coding/editing/c+p, you should be able to figure it out. Theres a snippet on Party room i think, or you can rip it from another source.
|
Hello, i am currently trying to make a fun party zone for a 317 rsps!
i have some ideas but i don't know how to make the right code for it, so i need your help.
First i tell a bit about my rsps... well its a 317 rsps but it looks like trisidiaX (IT'S NOT trisidiax) i can't tell what one it is because my friend send it to me on skype and it was unnamed.
Now i tell about the party zone-
Well first of all it will be a small area that you can tele too, when you in that area you have a choice of anycolor party hat but when you tele out of that zone you party hat disappears.
Then it's an easy part ... making a box that u can put items and they randomly drop (in that area)
But for the box i tryied to make it too but it seems to have lotes and lotes of bugs, can anyone give me a good guide or tell me how to make it if they did it b4
But the hard part is about party hat ....
Plz dont tell me that this would be hard or i never be able to make it.
Im a pretty good at coding and i tried to make it myself (but it failed)
and then i tried to use clan wars guide ( bit where you choose your cape color ) and it failed too
So now i'm here asking for your help.
Thank you!
If you're pretty good at coding/editing/c+p, you should be able to figure it out. Theres a snippet on Party room i think, or you can rip it from another source.
well yes i can rip it out of another source but i dont know a source where you can choose a party hat... and if you tele out party hat disappears
For the choice of partyhats, just make a dialogue from an NPC or an object that you click and asks what colour they want.
Then for removing the partyhat. Using the above code, just have it give an int that set to your character file to know which phat they took (eg 1 = green, 2 = red)
Then have a check for if there in that area, keep the phat, and if there not and they have that int = 0 and remove the phat.
That's probably the easiest way of doing it, though giving out any partyhats or rares at all is risky, and people will always find ways of taking it out. I would not recommend this idea at all, but if it's really what your looking for.
Everything is easy to make...with some common sense you can find everything you need on rune-server.
for the teleporting part, you can just add a check to see if they have a party hat in their inventory or not. if they're wearing a party hat or not and if they are, it'd get removed. ill give you an example for the yellow party hat.
add that check to your startTeleport() in playerassistants
Code:if (c.inPartyZone()) { if(c.getItems().playerHasItem(1040)) { c.getItems().deleteItem(1040, 28); } else if (c.playerEquipment[Player.playerHat] == 1040) { c.playerEquipment[Player.playerHat] = -1; } }is checking if the players in that areaCode:if (c.inPartyZone()) { }
is checking if the player has item id 1040 (yellow phat) in their inventory, if they have it in their inventory, it'll delete up to 28 of them.Code:if(c.getItems().playerHasItem(1040)) { c.getItems().deleteItem(1040, 28); }
this checks to see if they're wearing the item id of 1040 in their hat slot, if they are, it'll remove whatever is in their hat slot.Code:else if (c.playerEquipment[Player.playerHat] == 1040) { c.playerEquipment[Player.playerHat] = -1; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |