magic2938 Posted January 7, 2016 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 29 Reputation: 0 Joined: 07/06/14 Last Seen: August 26, 2016 Share Posted January 7, 2016 (edited) how can i make this script choose only once per character.. - script PLogin -1,{ OnPCLoginEvent: switch(select("Demon:Angel")) { case 1: mes "You are ^FF0000DEMON ^000000NOW"; setfaction 2; specialeffect2 587; close; case 2: mes "You are ^00FF00 ANGEL ^000000NOW"; setfaction 3; specialeffect2 338; close; } end; } when i choose faction and login the same character it will choose again plss help me guys Edited January 8, 2016 by Emistry codebox Quote Link to comment Share on other sites More sharing options...
0 Ninja Posted January 8, 2016 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted January 8, 2016 if you have a checkfaction script command (because I dont know if you do) you can do like if (checkfaction) end; but if you don't you can manually do it by adding player variables. - script PLogin -1,{ OnPCLoginEvent: if (faction) //add this end; switch(select("Demon:Angel")) { case 1: mes "You are ^FF0000DEMON ^000000NOW"; setfaction 2; specialeffect2 587; set faction, 1; //add this close; case 2: mes "You are ^00FF00 ANGEL ^000000NOW"; setfaction 3; specialeffect2 338; set faction, 1; //add this close; } end; } Quote Link to comment Share on other sites More sharing options...
Question
magic2938
how can i make this script choose only once per character..
codebox
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.