PDA

View Full Version : Simple z508 & z525 summoning



Wise Old Man
July 14th, 2010, 02:17
Put this in dropitem.java :)


case 12047:
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Spirit wolf.");
Server.engine.newNPC(6829, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;

case 12043:
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Dreadfowl.");
Server.engine.newNPC(6825, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;

case 12025:
if (p.getLevelForXP(23) <= 79)
p.getActionSender().sendMessage(p, "You need a summoning level of 80 to summon a Hydra.");
if (p.getLevelForXP(23) <= 79)
return;
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Hydra");
Server.engine.newNPC(6811, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;

case 12063:
if (p.getLevelForXP(23) <= 25)
p.getActionSender().sendMessage(p, "You need a summoning level of 25 to summon a Spirit Kalphite.");
if (p.getLevelForXP(23) <= 25)
return;
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Spirit Kalphite.");
Server.engine.newNPC(6994, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;

case 12017:
if (p.getLevelForXP(23) <= 82)
p.getActionSender().sendMessage(p, "You need a summoning level of 83 to summon a Spirit Dagannoth.");
if (p.getLevelForXP(23) <= 82)
return;
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Spirit Dagannoth.");
Server.engine.newNPC(6804, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;

case 12099:
if (p.getLevelForXP(23) <= 42)
p.getActionSender().sendMessage(p, "You need a summoning level of 43 to summon a Spirit Saratrice.");
if (p.getLevelForXP(23) <= 42)
return;
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Spirit Saratrice.");
Server.engine.newNPC(6879, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;
case 12101:
if (p.getLevelForXP(23) <= 42)
p.getActionSender().sendMessage(p, "You need a summoning level of 43 to summon a Spirit zamatrice.");
if (p.getLevelForXP(23) <= 42)
return;
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Spirit Zamatrice.");
Server.engine.newNPC(6881, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;
case 12105:
if (p.getLevelForXP(23) <= 42)
p.getActionSender().sendMessage(p, "You need a summoning level of 43 to summon a Spirit Coraxatrice.");
if (p.getLevelForXP(23) <= 42)
return;
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Spirit Coraxatrice.");
Server.engine.newNPC(6885, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;
case 12790:
if (p.getLevelForXP(23) <= 98)
p.getActionSender().sendMessage(p, "You need a summoning level of 99 to summon a Steel Titan.");
if (p.getLevelForXP(23) <= 98)
return;
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a Steel titan.");
Server.engine.newNPC(7343, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
break;

majhol
July 14th, 2010, 08:36
thanks Wise Old Man ..
it's working ! om Z508 !

Wise Old Man
July 19th, 2010, 17:43
:) No problem.

overloadpure
July 27th, 2010, 14:50
where do i find itemdrop.java :p
help me

Faab234
August 2nd, 2010, 18:48
Use a method for it like:



public void Summon(Player p, String Name, String ID) {
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a "+Name+".");
Server.engine.newNPC(ID, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
}


Oh, and use the ItemOption 2 for it, Runescape made a packet for it, use it then.

Trey
August 2nd, 2010, 18:51
Use a method for it like:



public void Summon(Player p, String Name, String ID) {
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a "+Name+".");
Server.engine.newNPC(ID, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
}

Except follow naming and format conventions:


public void summon(Player p, String name, String id) {
if (!p.summonedFamiliar) {
p.summonDrainDelay = 12;
p.summonedFamiliar = true;
p.getActionSender().sendMessage(p, "You summon a " + Name + ".");
Server.engine.newNPC(ID, p.absX-1, p.absY, p.heightLevel, 0, 0, 0, 0, false, p.playerId);
} else {
failedDropping = true;
p.getActionSender().sendMessage(p, "You cannot summon another familiar.");
}
}


Java doesn't have anything to do with Microsoft and their weird naming styles, so don't capitalize every identifier.

i0wn3v3ry
October 6th, 2010, 04:35
I click summon, I even click drop, nothing summons lol.

brendan s
October 15th, 2010, 22:03
it keeps sayen case 12047 is a orphaned case??? when i compile

Gary
October 24th, 2010, 00:14
where do i find itemdrop.java :p
help me

I lol'd irl.. CTRL + F is your friend.

Romanage Dan
October 24th, 2010, 00:15
good job repped if there was rep

brendan s
October 24th, 2010, 04:32
keeps sayen case 12047 is orphaned

Coder Drew
October 24th, 2010, 05:13
Thanks for the help, Repped

brendan s
October 24th, 2010, 05:21
lol how do i fix it keeps sayen this case is orphaned

Steve
October 24th, 2010, 05:22
lol how do i fix it keeps sayen this case is orphaned
I told you already, missing a break. Or deleted a case by accident...

brendan s
October 24th, 2010, 05:33
I told you already, missing a break. Or deleted a case by accident...

show me how to fix it then?

Soviet
November 1st, 2010, 23:43
is there any way to make a familiar to attack your opponent in multiway combat?

pk3r4lif3
November 18th, 2010, 01:55
Lol, very nice wise old man :)

skulledace22
November 19th, 2010, 00:37
Could u make summoning pets?If its not hard..or give a tipa what i need for them to work :p