Bin4ry Posted September 8, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted September 8, 2012 (edited) // PVP aria_vs2,51,50,0 script Rune#PVP 1907,{ end; OnInit: // Configs setarray .Name$[1], "Double Damage", "Double Magic", "Haste", "Invisibility", "Illusion", "Regeneration"; // Runes Name set .Duration, 60; // Rune Duration // End of Config OnStart: setnpctimer 0; initnpctimer; end; OnTimer60000: if (.Spawn) end; set .Spawn, 1; if (!.Rune) set .Rune, rand (1,(getarraysize(.Name$) - 1)); switch (.Rune) { case 1: monster rwc03, 0, 0, .Name$[.Rune], 1142, 1, strnpcinfo(0) + "::OnHaste"; set .Spawn, 1; break; case 2: monster rwc03, 0, 0, .Name$[.Rune], 1142, 1, strnpcinfo(0) + "::OnATK"; set .Spawn, 1; break; case 3: monster rwc03, 0, 0, .Name$[.Rune], 1142, 1, strnpcinfo(0) + "::OnMATK"; set .Spawn, 1; break; case 4: monster rwc03, 0, 0, .Name$[.Rune], 1142, 1, strnpcinfo(0) + "::OnCloak"; set .Spawn, 1; break; case 5: monster rwc03, 0, 0, .Name$[.Rune], 1142, 1, strnpcinfo(0) + "::OnIllusion"; set .Spawn, 1; break; case 6: monster rwc03, 0, 0, .Name$[.Rune], 1142, 1, strnpcinfo(0) + "::OnRegen"; set .Spawn, 1; break; } // npctalk "Rune spawned!"; set .Rune,0; goto OnStart; OnHaste: dispbottom "Speed increased for " + .Duration + " seconds."; sc_start SC_SpeedUp1, (.Duration * 1000), 0; set .Spawn, 0; end; OnATK: dispbottom "Double Damage for " + .Duration + " seconds."; sc_start SC_INCATKRATE, (.Duration * 1000), 100; set .Spawn, 0; end; OnMATK: dispbottom "Double Magic Attack for " + .Duration + " seconds."; sc_start SC_INCMATKRATE, (.Duration * 1000), 100; set .Spawn, 0; end; OnCloak: dispbottom "Invisible mode for " + .Duration + " seconds."; skill "AS_CLOAKING", 10, 1; sc_start SC_CLOAKING, (.Duration * 1000), 10; set .Spawn, 0; end; OnIllusion: dispbottom "Illusions spawned for " + .Duration + " seconds."; getmapxy (.@Map$, .@X, .@Y, 0, strcharinfo(0)); clone .@Map$, .@X, .@Y, "", getcharid(0), getcharid(0), "", 1, .Duration; clone .@Map$, .@X, .@Y, "", getcharid(0), getcharid(0), "", 1, .Duration; set .Spawn, 0; end; OnRegen: dispbottom "Double Regeneration Rate for " + .Duration + " seconds."; sc_start4 SC_REGENERATION,(.Duration * 1000), -10, 1, 0, 0; set .Spawn, 0; end; } Need help on fixing this :[ Edited September 8, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 9, 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 September 9, 2012 Read this .. http://rathena.org/board/forum-30/announcement-9-scripting-support-easy-as-1-2-3/ Quote Link to comment Share on other sites More sharing options...
Question
Bin4ry
Need help on fixing this :[
Edited by darristanLink to comment
Share on other sites
1 answer 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.