Cisqua Posted February 8, 2013 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 131 Reputation: 1 Joined: 12/29/12 Last Seen: August 10, 2016 Share Posted February 8, 2013 i want this like if player kill poring it give 10 lvls per kills. poring_w02,24,175,0,0 monster High Poring 1002,10,0,0,freebieslvl::OnPoringKilled,0,0 - script freebieslvl -1,{ if (BaseLevel=>99) goto end;; OnPoringKilled: atcommand "@blvl 10"; atcommand "@jlvl 10"; end; } } Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 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 February 8, 2013 prt_fild01,0,0,0,0 monster Poring 1002,30,5000,0,"Freebies::OnPoringKilled" - script Freebies -1,{ OnPoringKilled: BaseLevel += 10; JobLevel += 10; end; } 1 Quote Link to comment Share on other sites More sharing options...
Cisqua Posted February 8, 2013 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 131 Reputation: 1 Joined: 12/29/12 Last Seen: August 10, 2016 Author Share Posted February 8, 2013 (edited) wow very fast reply.. thanks Emistry! Emistry how about the if? like if baselvl 99 npc wont work.. i have this error in my map server [Warning]: script:get_val: cannot access player variable 'BaseLevel', defaulting to 0 [Error]: script_rid2sd: fatal error ! player not attached! [Debug]: Source (NPC): Freebies (invisible/not on a map) Edited February 8, 2013 by Cisqua Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted February 8, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted February 8, 2013 prt_fild01,0,0,0,0 monster Poring 1002,30,5000,0,"Freebies::OnPoringKilled" - script Freebies -1,{ OnPoringKilled: if (BaseLevel < 99) { attachrid(getcharid(3)); BaseLevel += 10; JobLevel += 10; detachrid; } end; } untested. Quote Link to comment Share on other sites More sharing options...
Question
Cisqua
i want this like if player kill poring it give 10 lvls per kills.
Link to comment
Share on other sites
3 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.