manbearpig Posted June 6, 2009 Author Share Posted June 6, 2009 how can i make it so when some one makes a account if they are warriors there guild will be set to warriors and if archers there guild will be set to archers because i thought it would be cool to have archers vs warriors Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 6, 2009 Share Posted June 6, 2009 Should be possible.Make sure you have a guild named "Archers" and another guild named "Warriors".Assume the Warriors are Class0 and the Archers are Class1, put this in your OnNewChar sub:```Dim ClassClass = GetPlayerClass(index)Select Case Class Case 0 ' Class0 Call SetPlayerGuild(Index, "Warriors") Case 1 ' Class1 Call SetPlayerGuild(Index, "Archers")End Select``` Link to comment Share on other sites More sharing options...
manbearpig Posted June 6, 2009 Author Share Posted June 6, 2009 THANX YOU!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Zarnick123 Posted June 6, 2009 Share Posted June 6, 2009 even if u did that, without editing the source they can leave the guild whenever they want Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 6, 2009 Share Posted June 6, 2009 @The:> even if u did that, without editing the source they can leave the guild whenever they wantTrue, but you could then, throw that into the JoinGame sub, and force the player to rejoin the guild everytime he logs back in ;) Link to comment Share on other sites More sharing options...
Zarnick123 Posted June 6, 2009 Share Posted June 6, 2009 yea but if hes trying to prevent the class from fighting each other and they left the guild they could do that, then just keep leaving every time they log in. I agree with you that the join thing is a good idea, but it doesnt solve the problem Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 6, 2009 Share Posted June 6, 2009 If he wants to prevent the classes from fighting each other, couldn't you just paste this at the top of the OnAttack?:```If GetPlayerClass(Index) = GetPlayerClass(GetPlayerTarget(Index)) Then Call PlayerMsg(Index, "You cannot attack someone of the same class", RED) Exit SubEnd If``` Link to comment Share on other sites More sharing options...
Zarnick123 Posted June 6, 2009 Share Posted June 6, 2009 and theres your solution ;)very nice Link to comment Share on other sites More sharing options...
manbearpig Posted June 6, 2009 Author Share Posted June 6, 2009 Doesnt work Link to comment Share on other sites More sharing options...
Zarnick123 Posted June 6, 2009 Share Posted June 6, 2009 paste sub Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 6, 2009 Share Posted June 6, 2009 Which doesn't work? The guild script, or the code that prevents people from attacking someone in the same class? Link to comment Share on other sites More sharing options...
manbearpig Posted June 6, 2009 Author Share Posted June 6, 2009 Both lol on attack script says script of range thenmake guild i get dim class error and timedevent error Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 6, 2009 Share Posted June 6, 2009 Okay, get rid of the stuff in the Sub OnNewChar so it's empty again, and post your OnAttack Sub Link to comment Share on other sites More sharing options...
manbearpig Posted June 6, 2009 Author Share Posted June 6, 2009 i took both offcan you post full on attack with your script added?see if i even did it right and i can just put it in and i will know Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now