PDA

View Full Version : [508] Dropparty In Edgeville.



Faab234
July 3rd, 2010, 09:33
Since i stopped with Ultrascape V4, i gonna release some stuff of it. So here is a dropparty for Edgeville.

Player.java:


public static int Dropparty[] = {4219, 9185, 8839, 8840, 8841, 11663, 11664, 11665, 1305, 1149, 1215, 1540, 1434, 1377, 1645, 1911, 3140, 4087, 3204, 3176, 4587, 5680, 6739, 7158, 7461, 11283, 4151, 11732, 11335, 1038, 1040, 1042, 1044, 1046, 1048};
public static int RandomItemsDropparty()
{
return Dropparty[(int)(Math.random()*Dropparty.length)];
}

NPCOption1.java:


case ID: //Party Pete
if (p.rights >= 1) {
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9841, 241, 2);
p.frames.setNPCId(p, 659, 241, 2);
p.frames.setString(p, "Party Pete", 241, 3);
p.frames.setString(p, "The Drop Party Starts Now !", 241, 4);
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
Engine.playerItems.addItem(p, 3801, 1);
p.frames.createGlobalObject(115, p.heightLevel, 3089, 3496, 0, 10);
p.frames.createGlobalObject(115, p.heightLevel, 3090, 3498, 0, 10);
p.frames.createGlobalObject(115, p.heightLevel, 3089, 3501, 0, 10);
p.frames.createGlobalObject(115, p.heightLevel, 3088, 3501, 0, 10);
p.frames.createGlobalObject(116, p.heightLevel, 3086, 3500, 0, 10);
p.frames.createGlobalObject(116, p.heightLevel, 3086, 3499, 0, 10);
p.frames.createGlobalObject(116, p.heightLevel, 3087, 3499, 0, 10);
p.frames.createGlobalObject(116, p.heightLevel, 3087, 3497, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3086, 3496, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3085, 3495, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3085, 3493, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3087, 3493, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3086, 3492, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3088, 3492, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3086, 3491, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3088, 3490, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3087, 3489, 0, 10);
p.frames.createGlobalObject(117, p.heightLevel, 3085, 3489, 0, 10);
p.frames.createGlobalObject(118, p.heightLevel, 3085, 3488, 0, 10);
p.frames.createGlobalObject(118, p.heightLevel, 3087, 3487, 0, 10);
p.frames.createGlobalObject(118, p.heightLevel, 3089, 3488, 0, 10);
p.frames.createGlobalObject(118, p.heightLevel, 3088, 3486, 0, 10);
p.frames.createGlobalObject(119, p.heightLevel, 3087, 3486, 0, 10);



} else {
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9775, 241, 2);
p.frames.setNPCId(p, 659, 241, 2);
p.frames.setString(p, "Party Pete", 241, 3);
p.frames.setString(p, "Hello "+p.username+", I am Party Pete !", 241, 4);
p.frames.setString(p, "If you're an admin or mod, you can start a drop party", 243, 5);

}
break;

ObjectOption1.java:


case 115:
p.requestAnim(10017, 0);
p.frames.createGlobalObject(123, p.heightLevel, p.clickX, p.clickY, 0, 10);
Engine.items.createGroundItem(p.RandomItemsDroppar ty(), 1, p.clickX, p.clickY, p.heightLevel, p.username);
break;
case 116:
p.requestAnim(10017, 0);
p.frames.createGlobalObject(124, p.heightLevel, p.clickX, p.clickY, 0, 10);
Engine.items.createGroundItem(p.RandomItemsDroppar ty(), 1, p.clickX, p.clickY, p.heightLevel, p.username);
break;
case 117:
p.requestAnim(10017, 0);
p.frames.createGlobalObject(125, p.heightLevel, p.clickX, p.clickY, 0, 10);
Engine.items.createGroundItem(p.RandomItemsDroppar ty(), 1, p.clickX, p.clickY, p.heightLevel, p.username);
break;
case 118:
Engine.items.createGroundItem(p.RandomItemsDroppar ty(), 1, p.clickX, p.clickY, p.heightLevel, p.username);
p.requestAnim(10017, 0);
p.frames.createGlobalObject(126, p.heightLevel, p.clickX, p.clickY, 0, 10);
break;
case 119:
p.requestAnim(10017, 0);
p.frames.createGlobalObject(127, p.heightLevel, p.clickX, p.clickY, 0, 10);
Engine.items.createGroundItem(p.RandomItemsDroppar ty(), 1, p.clickX, p.clickY, p.heightLevel, p.username);;
break;
case 120:
p.requestAnim(10017, 0);
p.frames.createGlobalObject(128, p.heightLevel, p.clickX, p.clickY, 0, 10);
Engine.items.createGroundItem(p.RandomItemsDroppar ty(), 1, p.clickX, p.clickY, p.heightLevel, p.username);
break;
case 121:
p.requestAnim(10017, 0);
p.frames.createGlobalObject(129, p.heightLevel, p.clickX, p.clickY, 0, 10);
Engine.items.createGroundItem(p.RandomItemsDroppar ty(), 1, p.clickX, p.clickY, p.heightLevel, p.username);
break;
case 122:
p.requestAnim(10017, 0);
p.frames.createGlobalObject(130, p.heightLevel, p.clickX, p.clickY, 0, 10);
Engine.items.createGroundItem(p.RandomItemsDroppar ty(), 1, p.clickX, p.clickY, p.heightLevel, p.username);
break;

Import PlayerItems. And Add under "Public class ......", this:


PlayerItems pi;

Errors? Please Reply!

Fire cape
July 3rd, 2010, 09:40
Nice job.
I remember seeing this.

UnitedScape
July 3rd, 2010, 10:58
Compiling palidino76.rs2
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
Note: .\palidino76\rs2\clanchat\Room.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Compiling palidino76.rs2.player
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
Note: .\palidino76\rs2\clanchat\Room.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Compiling palidino76.rs2.player.ptrade
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
Note: .\palidino76\rs2\clanchat\Room.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Compiling palidino76.rs2.player.update


help?

Faab234
July 3rd, 2010, 16:25
Compiling palidino76.rs2
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
Note: .\palidino76\rs2\clanchat\Room.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Compiling palidino76.rs2.player
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
Note: .\palidino76\rs2\clanchat\Room.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Compiling palidino76.rs2.player.ptrade
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
.\palidino76\rs2\io\packets\NPCOption1.java:43: cannot find symbol
symbol : variable pi
location: class palidino76.rs2.io.packets.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
Note: .\palidino76\rs2\clanchat\Room.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Compiling palidino76.rs2.player.update


help?

Add in ObjectOption1.java:


PlayerItems pi;

And Import PlayerItems.

millennium
July 3rd, 2010, 17:14
Sorry faab but this has been released serveral times.... So i Should Say.... > This = a fail

Faab234
July 3rd, 2010, 17:21
Sorry faab but this has been released serveral times.... So i Should Say.... > This = a fail

No, That's the Falador Version.

millennium
July 3rd, 2010, 20:04
doesnt matter lol i dont wanne argue with you ( u just changed the coords )


And maybe added some things around..... But it isnt much diffrent :P

atsiv3
July 3rd, 2010, 21:03
Compiling net/com/codeusa/*.java
.\net\com\codeusa\net\packethandler\NPCOption1.jav a:231: cannot find symbol
symbol : variable pi
location: class net.com.codeusa.net.packethandler.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
.\net\com\codeusa\net\packethandler\NPCOption1.jav a:231: cannot find symbol
symbol : variable pi
location: class net.com.codeusa.net.packethandler.NPCOption1
pi.deleteItem(p,3801,pi.getItemSlot(p,3801),1);
^
.\net\com\codeusa\net\packethandler\NPCOption1.jav a:232: package Engine does not
exist
Engine.playerItems.addItem(p, 3801, 1);
^
3 errors
Press any key to continue . . .

Help?

Break
July 6th, 2010, 22:47
Leeched - All you did was changing click on lever at ObjectOption1 into click on npc at NpcOption1.
And change pi to playerItems.

Faab234
July 7th, 2010, 09:46
Leeched - All you did was changing click on lever at ObjectOption1 into click on npc at NpcOption1.
And change pi to playerItems.

Lol, Do you have a Proof?

Break
July 7th, 2010, 10:18
Ofc I have, Go to rune server every beginner know this is leeched, Sorry bro.

conan300
July 7th, 2010, 10:21
Thanks ..

Faab234
July 7th, 2010, 13:27
Ofc I have, Go to rune server every beginner know this is leeched, Sorry bro.

Please give a Link, Thanks.

aTime
July 7th, 2010, 13:30
Faab you've been programming forever and still cant grasp a hold of conventions.

Wtf bro :rolleyes:

Faab234
July 7th, 2010, 13:38
Faab you've been programming forever and still cant grasp a hold of conventions.

Wtf bro :rolleyes:

This is from a Year Ago, When i had the Experience of 2. Also, I'm Programming Java 1 year now (1 Year Programming, 1 Year Follow tutorials, Learn Simple things.). Without Books, Now I'm reading books, Follow tutorials. I'm 5/6 year in the WebDevelopment.

Wise Old Man
July 12th, 2010, 17:12
doesnt matter lol i dont wanne argue with you ( u just changed the coords )


And maybe added some things around..... But it isnt much diffrent :P

Why don't you shut the hell up. He's helping the community.. Everything is going to get reposted somewhere multiple times. Either you try to help the community to or stfu and gtfo.

Nuff said,
Thanks.

Bwuk Im Pro
July 12th, 2010, 22:04
OMFG Your beast changed some coords and made it edgeville ftw dude pm me your server link!!! -.-"

nevada
July 12th, 2010, 22:29
Overall thats pretty cool


-thanks

Tricky
December 30th, 2010, 13:19
I done It And No Errors and When It Sais party Beginning Nothing Happens Lmao Little Help?

EDIT: FIXED THANKS ITS GREAT!

Tricky
December 31st, 2010, 22:55
Theres A Little Problem with This :S You Can Spam Click It And Get Like 10 Drops :P Dose eny 1 No how To Fix It Would be Great.