retroflav Posted June 8, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 87 Reputation: 4 Joined: 08/09/12 Last Seen: November 7, 2018 Share Posted June 8, 2013 Hello can someone make me a simple auto execute @command when a player enters a map script? Thanks Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 8, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted June 8, 2013 OnPCLoadMapEvent: atcommand "@commands"; end; .... ... ... mapname mapflag loadevent Quote Link to comment Share on other sites More sharing options...
retroflav Posted June 8, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 87 Reputation: 4 Joined: 08/09/12 Last Seen: November 7, 2018 Author Share Posted June 8, 2013 thanks that helps! Quote Link to comment Share on other sites More sharing options...
retroflav Posted June 10, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 87 Reputation: 4 Joined: 08/09/12 Last Seen: November 7, 2018 Author Share Posted June 10, 2013 Help, There was a very weird problem. Why is it applying on "ALL" maps whenever I enter a portal it executes all command LOL it should only apply on that specific map but it happens on every map, every portal >_< Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 10, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted June 10, 2013 OnPCLoadMapEvent: if( strcharinfo(3) == "mapname" ) atcommand "@commands"; end; Quote Link to comment Share on other sites More sharing options...
retroflav Posted June 12, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 87 Reputation: 4 Joined: 08/09/12 Last Seen: November 7, 2018 Author Share Posted June 12, 2013 well, I have one more case. I'd like to apply a couple of buffs when entering a map, for example, my case is on Beginner zone. Whenever a novice enters on that map, certain buffs will be automatically applied on his character... I made this script but it applies the buffs during WoE LOL - script autobegbuff -1,{ OnPCLoadMapEvent: if( strcharinfo(3) == "job3_rune02" ) skilleffect 383,0; sc_start SC_WINDWALK,360000,5; skilleffect 8,0; sc_start SC_ENDURE,360000,10; skilleffect 33,0; sc_start SC_ANGELUS,360000,10; skilleffect 45,0; sc_start SC_CONCENTRATE,360000,10; skilleffect 74,0; sc_start SC_MAGNIFICAT,360000,5; skilleffect 75,0; sc_start SC_GLORIA,360000,5; skilleffect 459,0; sc_start SC_ADRENALINE2,360000,1; skilleffect 66,0; sc_start SC_IMPOSITIO,360000,5; skilleffect 67,0; sc_start SC_SUFFRAGIUM,360000,3; skilleffect 34,0; sc_start SC_BLESSING,36000,10; skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10; skilleffect 112,0; sc_start SC_WEAPONPERFECTION,360000,10; skilleffect 113,0; sc_start SC_OVERTHRUST,360000,5; skilleffect 114,0; sc_start SC_MAXIMIZEPOWER,360000,5; skilleffect 357,0; sc_start SC_CONCENTRATION,360000,5; skilleffect 355,0; sc_start SC_AURABLADE,360000,5; skilleffect 155,0; sc_start SC_LOUD,360000,1; skilleffect 157,0; sc_start SC_ENERGYCOAT,360000,1; sc_start SC_ASPDPOTION2,360000,0; sc_start SC_HitFood,1200000,30; sc_start SC_FleeFood,1200000,30; sc_start SC_BATKFood,1200000,10; skilleffect 380,0; sc_start SC_TRUESIGHT,360000,5; skilleffect 361,0; sc_start SC_ASSUMPTIO,360000,5; end; } job3_rune02 mapflag loadevent Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted June 12, 2013 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted June 12, 2013 if( strcharinfo(3) == "job3_rune02" ) change to if( strcharinfo(3) != "job3_rune02" ) end; 1 Quote Link to comment Share on other sites More sharing options...
retroflav Posted June 12, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 87 Reputation: 4 Joined: 08/09/12 Last Seen: November 7, 2018 Author Share Posted June 12, 2013 aww that works! you're pro! thanks! Quote Link to comment Share on other sites More sharing options...
Question
retroflav
Hello can someone make me a simple auto execute @command when a player enters a map script? Thanks
Link to comment
Share on other sites
7 answers 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.