AwesomePosom Posted October 17, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 53 Reputation: 1 Joined: 01/07/12 Last Seen: January 21, 2015 Share Posted October 17, 2012 (edited) Are there any special configuration to use the OnPCBaseLvUpEvent? Here is my sample work: [quote ]OnPCBaseLvUpEvent: @modulo = BaseLevel % 10; if(@modulo == 0) { mes "Divisible by 10"; close; } Coz, when I try to run this script, nothing happens. No error message on the console either. Edited October 17, 2012 by brainnysmurfs Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 17, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted October 17, 2012 it will only trigger the event when your character level up ..... Quote Link to comment Share on other sites More sharing options...
AwesomePosom Posted October 17, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 53 Reputation: 1 Joined: 01/07/12 Last Seen: January 21, 2015 Author Share Posted October 17, 2012 Yes, I did try that but still no message appears. Is there anything I need to set in mapflag or script_athena.conf? Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted October 17, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Share Posted October 17, 2012 Can you give the actual script that you tried to use it in so I can look at that? I use OnPCBaseLvUpEvent without any issues on my server. Peopleperson49 Quote Link to comment Share on other sites More sharing options...
AwesomePosom Posted October 17, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 53 Reputation: 1 Joined: 01/07/12 Last Seen: January 21, 2015 Author Share Posted October 17, 2012 My bad, I assume that the @blevel will trigger the OnPCBaseLvUpEvent. Anyway I already tested it on a real level up from a monster, and it works just fine. Thanks! Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted October 17, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: April 15 Share Posted October 17, 2012 Glad you figured it out! Peopleperson49 Quote Link to comment Share on other sites More sharing options...
Question
AwesomePosom
Are there any special configuration to use the OnPCBaseLvUpEvent?
Here is my sample work:
[quote
]OnPCBaseLvUpEvent:
@modulo = BaseLevel % 10;
if(@modulo == 0)
{
mes "Divisible by 10";
close;
}
Coz, when I try to run this script, nothing happens. No error message on the console either.
Edited by brainnysmurfsLink to comment
Share on other sites
5 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.