Ninjamon Posted February 26, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.02 Content Count: 295 Reputation: 2 Joined: 03/06/12 Last Seen: November 4, 2014 Share Posted February 26, 2013 Can anyone help me about these scripts? *Broadcast when mvp is pawned *A custom warper that verify if you own the kriemhild castle he will warp you to a specific map *Npc Daily Rewarder (1 Per IP) Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 26, 2013 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 February 26, 2013 1. announce MVP when pawned OnNPCKillEvent: if( getmonsterinfo( killedrid,MOB_MVPEXP ) ) announce strcharinfo(0)+" killed "+getmonsterinfo( killedrid,MOB_NAME ),0; end; 2. verify castle + warp if( getcastledata( "prtg_cas01",1 ) == getcharid(2) ){ warp "prontera",155,181; } 3. search the forum...got a few examples for daily reward.... Quote Link to comment Share on other sites More sharing options...
Ninjamon Posted February 27, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.02 Content Count: 295 Reputation: 2 Joined: 03/06/12 Last Seen: November 4, 2014 Author Share Posted February 27, 2013 I am using the mvp announce which i found on eathena. - script Announce -1,{ OnNPCKillEvent: setarray .MVPID[0],1511,1647,1785,1630,1399,1039,1874,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,1190,1038,1157,1159,1502,1623,1650,1583,1708,1312,1751,1685,1648,1917,1658,1734; for (set .@c, 0; .@c < getarraysize(.MVPID); set .@c, .@c + 1) if (killedrid == .MVPID[.@c]) set .@s, 1; if (!.@s) end; announce "[ " +strcharinfo(0) +" ] has pawned the Legendary [ " +getmonsterinfo(killedrid,0) +" ]. Reward: [ Event Ticket x2 ].",0,0xDA70D6; getitem 7711,2; end; } Now the problem is how can i add a reward to your script and change the colors of the broadcast? Thanks up How can i make that announce to broadcast it only to your self. It means only you can see the broadcast. Quote Link to comment Share on other sites More sharing options...
Bahmut Posted February 27, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted February 27, 2013 Now the problem is how can i add a reward to your script and change the colors of the broadcast? Thanks up How can i make that announce to broadcast it only to your self. It means only you can see the broadcast. 1. Reward: Add this line: getitem <itemid>,<amount>; 2. Color: add 0x<html color code> at the end of the announce command. Link for color codes 3. Announce to Killer Change the 0 at the end of the announce command to bc_self Like this for Event Tickets and a red colored broadcast : OnNPCKillEvent: if( getmonsterinfo( killedrid,MOB_MVPEXP ) ) announce strcharinfo(0)+" killed "+getmonsterinfo( killedrid,MOB_NAME ),bc_self,0xFF0000; getitem 7711,2; end; Quote Link to comment Share on other sites More sharing options...
Ninjamon Posted February 27, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.02 Content Count: 295 Reputation: 2 Joined: 03/06/12 Last Seen: November 4, 2014 Author Share Posted February 27, 2013 Now the problem is how can i add a reward to your script and change the colors of the broadcast? Thanks up How can i make that announce to broadcast it only to your self. It means only you can see the broadcast. 1. Reward: Add this line: getitem <itemid>,<amount>; 2. Color: add 0x<html color code> at the end of the announce command. Link for color codes 3. Announce to Killer Change the 0 at the end of the announce command to bc_self Like this for Event Tickets and a red colored broadcast : OnNPCKillEvent: if( getmonsterinfo( killedrid,MOB_MVPEXP ) ) announce strcharinfo(0)+" killed "+getmonsterinfo( killedrid,MOB_NAME ),bc_self,0xFF0000; getitem 7711,2; end; I tried getitem but even though you're killing a normal mob, It gives you the reward. Quote Link to comment Share on other sites More sharing options...
Bahmut Posted February 27, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted February 27, 2013 I tried getitem but even though you're killing a normal mob, It gives you the reward. Try this: OnNPCKillEvent: if( getmonsterinfo( killedrid,MOB_MVPEXP ) > 0 ) announce strcharinfo(0)+" killed "+getmonsterinfo( killedrid,MOB_NAME ),bc_self,0xFF0000; getitem 7711,2; end; Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 27, 2013 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 February 27, 2013 @Bahmut.. it's the same...the result will alway return true if the monster have MVP EXP. @TS make sure your getmonsterinfo have the extended parameter... MOB_MVPEXP 22 Quote Link to comment Share on other sites More sharing options...
Ninjamon Posted February 28, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.02 Content Count: 295 Reputation: 2 Joined: 03/06/12 Last Seen: November 4, 2014 Author Share Posted February 28, 2013 OnNPCKillEvent: if( getmonsterinfo( killedrid,MOB_MVPEXP ) > 22 ) announce strcharinfo(0)+" killed "+getmonsterinfo( killedrid,MOB_NAME ),bc_self,0xFF0000; getitem 7711,2; end; Like this? up Quote Link to comment Share on other sites More sharing options...
Bahmut Posted March 1, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted March 1, 2013 What server software are you using? Quote Link to comment Share on other sites More sharing options...
Ninjamon Posted March 3, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.02 Content Count: 295 Reputation: 2 Joined: 03/06/12 Last Seen: November 4, 2014 Author Share Posted March 3, 2013 Linux Quote Link to comment Share on other sites More sharing options...
Bahmut Posted March 3, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted March 3, 2013 No I mean eAthena, rAthena, Hercules, etc. Also what revision are you using? Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 3, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 3, 2013 OnNPCKillEvent: if( getmonsterinfo( killedrid,MOB_MVPEXP ) > 0 ) { announce strcharinfo(0)+" killed "+getmonsterinfo( killedrid,MOB_NAME ),bc_self,0xFF0000; getitem 7711,2; } end; Bahmut forgot the brackets. Theses lines don't work with eAthena servers. Quote Link to comment Share on other sites More sharing options...
Bahmut Posted March 4, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 382 Reputation: 39 Joined: 01/17/12 Last Seen: February 13, 2020 Share Posted March 4, 2013 @Capuche Oh you are right haven't checked that. Quote Link to comment Share on other sites More sharing options...
Ninjamon Posted March 4, 2013 Group: Members Topic Count: 113 Topics Per Day: 0.02 Content Count: 295 Reputation: 2 Joined: 03/06/12 Last Seen: November 4, 2014 Author Share Posted March 4, 2013 I am using rathena. Quote Link to comment Share on other sites More sharing options...
Question
Ninjamon
Can anyone help me about these scripts?
*Broadcast when mvp is pawned
*A custom warper that verify if you own the kriemhild castle he will warp you to a specific map
*Npc Daily Rewarder (1 Per IP)
Link to comment
Share on other sites
13 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.