[CoEmu] Guild War

07/01/2009 01:22 0105653642#1
i need to know how to make guild war work in CoEmu v2 i hope some can let me know how
07/01/2009 12:10 Kiyono#2
Code the guilds first.
07/01/2009 12:39 0105653642#3
Quote:
Originally Posted by Kiyono View Post
Code the guilds first.
i don't know how to code it i just need the begin for the road and i will walk on it i hope u can guide me
07/01/2009 12:49 Kiyono#4
Then take the easy way and C&P LOTF's guild system =/
07/01/2009 16:20 0105653642#5
Quote:
Originally Posted by Kiyono View Post
Then take the easy way and C&P LOTF's guild system =/
can i use search to find that or what
07/01/2009 16:47 ~*NewDuuDe*~#6
Quote:
Originally Posted by 0105653642 View Post
can i use search to find that or what
Obviously you'll need to download a LOTF source.
07/01/2009 17:46 0105653642#7
Quote:
Originally Posted by BERGHUIS1 View Post
Obviously you'll need to download a LOTF source.
when i download it can i take guild director code and develop it to work with CoEmu
07/01/2009 18:44 JustChillin#8
Quote:
Originally Posted by 0105653642 View Post
when i download it can i take guild director code and develop it to work with CoEmu
No. Maybe as a refrence to code guilds in CoEmu
07/01/2009 18:54 0105653642#9
Quote:
Originally Posted by JustChillin View Post
No. Maybe as a refrence to code guilds in CoEmu
ok i will try it thanx all for ur helping
07/01/2009 21:08 0105653642#10
this is code for GuildDirector i made it it's not complete i try it but when i try finish it like that wont work and make dc when i click on GuildDirector i hope some one can help me to finish it this is the error i get
Error 1 Control cannot fall through from one case label ('case 10003:') to another

HTML Code:
case 10003: //GuildDirector
{
if (LinkBack == 0)
{
Text("Greetings! I am the guild director in charge of administrating and manamimg guilds. What business do you have With me?", CSocket);
Link("Creat a guild", 1, CSocket);
Link("Pass my leadership", 2, CSocket);
Link("Assign Deputy Guild Leader", 3, CSocket);
Link("Remove sb. from office", 4, CSocket);
Link("Ally With guild", 5, CSocket);
Link("More", 6, CSocket);
Link("Un-ally with guild", 7, CSocket);
Link("Hostile to a guild", 8, CSocket);
Link("Reconcile with guild", 9, CSocket);
Link("Disband my guild", 10, CSocket);
End(CSocket);
07/02/2009 03:37 WHITELIONX#11
case 10015: //GuildDirector
{
if (LinkBack == 0)
{
// Text("Greetings! I am the guild director in charge of administrating and manamimg guilds. What business do you have With me?"));
Text("Greetings! I am the guild director in charge of administrating and manamimg guilds. What business do you have With me?", CSocket);
Link("Creat a guild", 1, CSocket);
Link("Pass my leadership", 2, CSocket);
Link("Assign Deputy Guild Leader", 3, CSocket);
Link("Remove sb. from office", 4, CSocket);
Link("Ally With guild", 5, CSocket);
Link("More", 6, CSocket);
Link("Un-ally with guild", 7, CSocket);
Link("Hostile to a guild", 8, CSocket);
Link("Reconcile with guild", 9, CSocket);
Link("Disband my guild", 10, CSocket);
End(CSocket);
}
break;

You missed out break;

Only reason I figured this out was looking at the other npc chat and comparing them to each other then realised that break; seemed to be missing so I added it and the error went after f6 hope this has helped :)
07/02/2009 04:13 JustChillin#12
Quote:
Originally Posted by 0105653642 View Post
this is code for GuildDirector i made it it's not complete i try it but when i try finish it like that wont work and make dc when i click on GuildDirector i hope some one can help me to finish it this is the error i get
Error 1 Control cannot fall through from one case label ('case 10003:') to another

HTML Code:
case 10003: //GuildDirector
{
if (LinkBack == 0)
{
Text("Greetings! I am the guild director in charge of administrating and manamimg guilds. What business do you have With me?", CSocket);
Link("Creat a guild", 1, CSocket);
Link("Pass my leadership", 2, CSocket);
Link("Assign Deputy Guild Leader", 3, CSocket);
Link("Remove sb. from office", 4, CSocket);
Link("Ally With guild", 5, CSocket);
Link("More", 6, CSocket);
Link("Un-ally with guild", 7, CSocket);
Link("Hostile to a guild", 8, CSocket);
Link("Reconcile with guild", 9, CSocket);
Link("Disband my guild", 10, CSocket);
End(CSocket);
}
[COLOR="Red"]break;[/COLOR]
Gotta put the break; in there. I made the same mistake and thought i did somethign wrong with my Npc xD
07/02/2009 22:47 0105653642#13
guyz that is not the full code i don't know how to make the place to put guild name and i still don't know how to make merge with GuildName+GuildLeader i'm still working on it who thinke he can help pls pm me