Combination Xx 317-603
Welcome to Conbination Xx ,please make a free account today to have access to making your own topics,if you are new to Unforgivscape,and do not have a client download can be found at the "announcements/updates" section of the Forums thanks for your time and don't forget to vote for us and you can download the new 317 client at http://www.mediafire.com/?3vdw42jcy511d1l
..::The forum Team::..


Image
 
PlayHomeUnforgivscapeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Top posters
Awesome4me (842)
 
Sinji (502)
 
Abel (270)
 
Eh Im God (260)
 
Blue Phat (228)
 
Mikenike (227)
 
Travis (223)
 
©I Am G0d I (202)
 
AskingAle (186)
 
๖̶ۣۜMєlaηiє™♥ (136)
 
Latest topics
» Looking for Developers \ Beta Testers \ Coders
Mon Sep 04, 2017 9:33 pm by Liam

» NOSTALGIA 2017
Fri Jun 16, 2017 4:21 pm by Abel

» I'm back, bitches.
Thu Dec 26, 2013 1:33 pm by Liam

» Hey been awhile
Thu Dec 26, 2013 12:35 pm by Liam

» Sweet Nostalgia
Sat Dec 07, 2013 4:23 am by Abel

» Hello ! [2013]
Sun Apr 28, 2013 5:31 am by Abel

» The hell happened?
Tue Jan 22, 2013 7:02 pm by MADBRO

» isaac abusing powers
Mon Dec 24, 2012 5:52 pm by Travis

» Hello :-)
Fri Dec 21, 2012 9:53 pm by dronza


Share | 
 

 I think this can sort dfs operate

View previous topic View next topic Go down 
AuthorMessage
Eh Im God
Legendary Member
Legendary Member
avatar

Posts : 260
Unforgivscape Reputation : 0
Join date : 2011-04-29
Age : 22
Location : united kingdom

PostSubject: I think this can sort dfs operate   Wed May 18, 2011 9:33 pm

Dragonfire shield operate


First of all just open your itempackethandler class, under public void itemoperate add this code:

case 11283:
case 11284:
if (!player.Attacking && player.id == 0) {
player.sm("You arent attacking any player at the moment.");
return;
}
if(player.dfs != 0) {
player.sm("You cant use the dfs again until: "+player.dfs+ "seconds, then you may operate again.");
return;
}
Player enemy = World.getInstance().getPlayerList().get(player.id);
player.dfs = 120;
enemy.hit(Misc.random(30));
player.animate(6696, 0);
player.graphics(1165, 0);
World.getInstance().getProjectileManager().fire(player.getLocation(), enemy.getLocation(), 50, 70, 1166, 43, 31, enemy);
enemy.graphics(1167, 0);
break;

At the top of your playerclass add this one:
/*
* DFS stuff
*/
public transient int dfs = 0;

And under the public void tick or public void process add this:
if (dfs > 0)
dfs--;

I hope this help, if not ill update this post more




Back to top Go down
View user profile
Guest
Guest



PostSubject: Re: I think this can sort dfs operate   Wed May 18, 2011 9:37 pm

This Would Not Work, For one this would be the same As what He Has now... Just doing the Operation...

Just Wait for Me to Put the tutorial Lol At least u tried to help though that's All that Matters.
Back to top Go down
Eh Im God
Legendary Member
Legendary Member
avatar

Posts : 260
Unforgivscape Reputation : 0
Join date : 2011-04-29
Age : 22
Location : united kingdom

PostSubject: Re: I think this can sort dfs operate   Wed May 18, 2011 9:52 pm

Thanks luther, hopefully it gets sorted it will be cool, hope you update this information soon
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: I think this can sort dfs operate   

Back to top Go down
 
I think this can sort dfs operate
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» What sort of winter do you think we are going to have this season????
» 3: Leighton Baines - Hotter than Cole (sort ya hair out lad)
» 3 relay cooling fan wiring - - - > question
» Is there some sort of spam filter here??
» Iron sights and How to Use Them (Is there an eye doctor in the house?)

Permissions in this forum:You cannot reply to topics in this forum
Combination Xx 317-603 ::  Coders zone-
Jump to: