How i can make work gw in PowerSourceCo?

08/17/2009 19:32 Genius02#1
hi ppl. Im new to pvpers. I made my own private server and i started learning how to code etc..I need help with the GuildWar in my private server.. i dont know how to make it work i searched here in pvpers and didnt found nothing. So if any1 can help me please do it.. TNX =P
08/17/2009 20:56 f0am#2
if im not wrong it should already work... did you test it
08/17/2009 21:38 Genius02#3
yes i did and it doesnt.. u are hiting the pole whole the time and nothing lol.
08/17/2009 21:39 f0am#4
what do you mean by nothing lol
08/18/2009 06:27 coreymills#5
u just got to set a command to start and end gw
08/18/2009 10:48 Genius02#6
Quote:
Originally Posted by f0am View Post
what do you mean by nothing lol
i mean u are hiting the pole and when the pole has no more hp its just stays like that with out hp and u are still hiting and hiting lol..
08/18/2009 10:49 Genius02#7
Quote:
Originally Posted by coreymills View Post
u just got to set a command to start and end gw
what command? i tryed with /gwstart and doesnt work..
08/18/2009 11:02 coreymills#8
heres the command to start and stop gw

Code:
if (Splitter[0] == "/gwstart")
                                        {
                                            World.GWOn = true;
                                            World.SendMsgToAll(MyChar.Name + "has started GuildWar!", "SYSTEM", 2011);
                                            World.SendMsgToAll(MyChar.Name + "has started GuildWar!", "SYSTEM", 2000);
                                        }
                                        if (Splitter[0] == "/gwstop")
                                        {
                                            World.GWOn = false;
                                            World.SendMsgToAll(MyChar.Name + " has ended Guild War.", "SYSTEM", 2011);
                                            World.SendMsgToAll(MyChar.Name + " has ended Guild War.", "SYSTEM", 2000);
                                        }
then in world.cs add this under
Code:
public class world
Code:
public static bool GWOn = false;
code should work as long as the timers are already in any problems post them here
08/18/2009 12:15 Genius02#9
Quote:
Originally Posted by coreymills View Post
heres the command to start and stop gw

Code:
if (Splitter[0] == "@gwstart")
                                        {
                                            World.GWOn = true;
                                            World.SendMsgToAll("GuildWar has started!", "SYSTEM", 2011);
                                            World.SendMsgToAll("GuildWar has started!", "SYSTEM", 2000);
                                        }
                                        if (Splitter[0] == "@gwstop")
                                        {
                                            World.GWOn = false;
                                            World.SendMsgToAll(MyChar.Name + " has ended Guild War.", "SYSTEM", 2011);
                                            World.SendMsgToAll(MyChar.Name + " has ended Guild War.", "SYSTEM", 2000);
                                        }
then in world.cs add this under
Code:
public class world
Code:
public static bool GWOn = false;
code should work as long as the timers are already in any problems post them here
nah.. doesnt work.. tnx anyway
08/18/2009 12:16 Genius02#10
i dont know if i should put something more like timers and all that things can u explain me more? tnx..
08/18/2009 12:59 coreymills#11
u have to put it to / on the command i have it set to @
08/18/2009 15:27 blade911#12
Or just don't use PowerSource?
08/18/2009 15:36 f0am#13
PM me, I know someone who might be able to help you.
08/18/2009 23:31 Genius02#14
i got it guys..
nestreys help me with some coding and it works :P
i give him a thanks:P