Ninjamon Posted February 26, 2013 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
Emistry Posted February 26, 2013 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
Ninjamon Posted February 27, 2013 Author 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
Bahmut Posted February 27, 2013 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
Ninjamon Posted February 27, 2013 Author 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
Bahmut Posted February 27, 2013 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
Emistry Posted February 27, 2013 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
Ninjamon Posted February 28, 2013 Author 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
Bahmut Posted March 3, 2013 Posted March 3, 2013 No I mean eAthena, rAthena, Hercules, etc. Also what revision are you using? Quote
Capuche Posted March 3, 2013 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
Bahmut Posted March 4, 2013 Posted March 4, 2013 @Capuche Oh you are right haven't checked that. Quote
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)
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.