DragonDagger 317
Welcome to DragonDagger's Official Forums!
Enjoy your stay.

DragonDagger 317

DragonDagger's Official Forums
 
HomeDDCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Donations welcomed, we're trying to get the golden server position on runelocus server status page!
Webclient is OUT! Click Play Now in the Forums Homepage

Share | 
 

 fight advertisment command.

Go down 
AuthorMessage
angelife
Global Administrator
Global Administrator
avatar

DD Posts DD Posts : 173
Join date : 2009-08-06
Age : 23
Location : farmington CT

PostSubject: fight advertisment command.   Sun Aug 09, 2009 1:38 pm

ok well since alott of peoples pk(mostly all of serv) i thought i might as well give out this command.all you have to do is type ::fight. and it does a shout over server saying "playername is looking for a fight at edge!" or whatever.

this is the one with a timer(10 seconds):

Code:
 }  if (command.startsWith("fight")) {
            checkmutedusers();
            String text = command.substring(5);
            if (muted == 1) {
                sM("You are muted and cannot advertise a fight!");
            } else if (fightTimer > 0 && playerRights == 0){
                sM(You can only advertise a fight once every 10 seconds!");
} else {
                PlayerHandler.messageToAll = playerName + " is looking for a fight at edge pk!"
                        + text;
            fightTimer = 10;
}



and this is the one without a timer:
Code:
  }if (command.startsWith("fight")) {
            checkmutedusers();
            String text = command.substring(5);
            if (muted == 1) {
                sM("You are muted and cannot advertise a fight!");
            } else {
                PlayerHandler.messageToAll = playerName + " is looking for a fight at edge pk "
                        + text;
            } 

=] if u add it backup ur files like a good coder incase u get an error Razz(it's possible if ur muteduser method isnt called "checkmutedusers();" Razz

-owlfanatic77

_________________


Last edited by owlfanatic77 on Wed Aug 26, 2009 9:15 am; edited 1 time in total
Back to top Go down
View user profile
shawn
Haxor IRL
avatar

DD Posts DD Posts : 214
Join date : 2009-08-01
Age : 52
Location : Washington State

PostSubject: Re: fight advertisment command.   Sun Aug 09, 2009 3:41 pm

Thanks man you have been helping the server out alot. Smile
Back to top Go down
View user profile
angelife
Global Administrator
Global Administrator
avatar

DD Posts DD Posts : 173
Join date : 2009-08-06
Age : 23
Location : farmington CT

PostSubject: Re: fight advertisment command.   Sun Aug 09, 2009 3:44 pm

only with codes Razz. i dont even know if they are using them. either way i'll still add some more codes Razz. maybe figure out how to make a webclient Razz( i got the all clear from arti lol! ) Razz

so yah thanks shawn. u've always been a positive poster 2 me =]

_________________
Back to top Go down
View user profile
fantom
Haxor IRL
avatar

DD Posts DD Posts : 282
Join date : 2009-07-27
Age : 23
Location : south dakota, usa

PostSubject: Re: fight advertisment command.   Sun Aug 09, 2009 6:40 pm

i vote u as admin ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ but i think there is wc just u cant c customs
Back to top Go down
View user profile
angelife
Global Administrator
Global Administrator
avatar

DD Posts DD Posts : 173
Join date : 2009-08-06
Age : 23
Location : farmington CT

PostSubject: Re: fight advertisment command.   Sun Aug 09, 2009 7:26 pm

lol thanks fantom. hell who knows maybe i might get admin someday.


im suprised no one reps+ me for this stuff >.> afro

_________________
Back to top Go down
View user profile
im real pb
Senior Member
avatar

DD Posts DD Posts : 110
Join date : 2009-07-29

PostSubject: Re: fight advertisment command.   Wed Aug 12, 2009 10:17 am

wow we owe u a big thnx
Back to top Go down
View user profile
bllc!
Haxor IRL
avatar

DD Posts DD Posts : 235
Join date : 2009-08-12

PostSubject: Re: fight advertisment command.   Sat Aug 15, 2009 6:25 pm

wow Very Happy nice coding
Back to top Go down
View user profile
pker for ev
Global Moderator
Global Moderator
avatar

DD Posts DD Posts : 365
Join date : 2009-07-21
Age : 23
Location : Hood River OR

PostSubject: Re: fight advertisment command.   Sat Aug 15, 2009 11:10 pm

damn dude you keep coding and your gonna get co owner!! lol keep it up!

_________________
!~! pker for ev !~!king
first one with 300 posts AMFG!!!
Back to top Go down
View user profile
Guest
Guest



PostSubject: Re: fight advertisment command.   Tue Aug 25, 2009 10:56 pm

owlfanatic77 wrote:
ok well since alott of peoples pk(mostly all of serv) i thought i might as well give out this command.all you have to do is type ::fight. and it does a shout over server saying "playername is looking for a fight at edge!" or whatever.

this is the one with a timer(10 seconds):

Code:
 } else if (command.startsWith("fight")) {
            checkmutedusers();
            String text = command.substring(5);
            if (muted == 1) {
                sendMessage("You are muted and cannot advertise a fight!");
            } else if (fightTimer > 0 && playerRights == 0){
                sendMessage("You can only advertise a fight once every 10 seconds!");
} else {
                PlayerHandler.messageToAll = playerName + " is looking for a fight at edge pk!"
                        + text;
            fightTimer = 10;
}



and this is the one without a timer:
Code:
  } else if (command.startsWith("fight")) {
            checkmutedusers();
            String text = command.substring(5);
            if (muted == 1) {
                sendMessage("You are muted and cannot advertise a fight!");
            } else {
                PlayerHandler.messageToAll = playerName + " is looking for a fight at edge pk "
                        + text;
            } 

=] if u add it backup ur files like a good coder incase u get an error Razz(it's possible if ur muteduser method isnt called "checkmutedusers();" Razz

-owlfanatic77
ahahaha thats verybasic but dood job for once better then others
Back to top Go down
angelife
Global Administrator
Global Administrator
avatar

DD Posts DD Posts : 173
Join date : 2009-08-06
Age : 23
Location : farmington CT

PostSubject: Re: fight advertisment command.   Wed Aug 26, 2009 8:50 am

Quote :
its very basic.
i know its basic. i just wanted to do that cuz allota pplz waste their time doing ::shout "fighting blah blah blah"

_________________
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: fight advertisment command.   

Back to top Go down
 
fight advertisment command.
Back to top 
Page 1 of 1
 Similar topics
-
» No start fight button !?
» Best Fight Thread!
» Almost 3 minutes fight?
» Ok lets tickle fight,anyone?
» Wazza' Muxxu?

Permissions in this forum:You cannot reply to topics in this forum
DragonDagger 317  :: General :: Guide Section-
Jump to: