Jump to content
  • 0

DoTA Runes


Jezu

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

I know this is possible but I want to request like this.. I want to put this features on my WOE Trans which will make it random spawns on any guild castle when WOE times or in PVP room w/ Dota Features and Dota Runes.. sounds cool isn't it? with matching Dota PVP Feature + Dota Runes Feature...

Double Damage Runes

Gives +100 ATK / MATK Damage for 1min. or

Gives 100% Damage to Demi-Human for 1min if this possible

Regeneration Runes

@Heal or Yggdrasilberry Script or

500HP/500SP per seconds if this possible, if full hp/sp = stop

illusion Runes

@clone itself 2x for 1 min.

Haste Runes

Gives @speed 100 for 1min

Invisibility Runes

Gives @skill Cloaking/Cloaking Exceed for 1min, Disable when hit

For the runes gfx, maybe I will use any items with OnTouch command...

Does anyone can make a script like this?

I like dispbottom " You've gained <Runes Name> for 1 minute. " like that..

Thanks in Advance and maybe we can release this features with matching Dota PVP + Dota runes..

*bump*

I just want to request if this is possible in-game... thanks!

Edited by Arcenciel
Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

I think the runes should be a combination of npc and item... so you can use timers to enable and disable npc...

then ontouch of the NPC, it will buff the character with the buff of the custom item,

And maybe source modifications.. :D

just my opinion.. :P

Edited by wakoko321
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

erm...i guess it would be something like this ?

anyway...the..Invisible part...it doesnt work when i use Cloaking..>.<

so i have no idea how to make that...perhaps other member might have a better way to do so ~

prontera,155,181,5 script Sample 757,2,2,{
dispbottom "Walkthrough to get Runes.";
end;
OnTouch:
switch( .Runes ){
 default:
 Case 0:
  dispbottom "No Runes Right now.";
  end;
 Case 1:
  sc_start SC_INCATKRATE,( .Duration * 1000 ),100;
  break;
 Case 2:
  sc_start SC_CLOAKING,( .Duration * 1000 ),10;
  break;
 Case 3:
  sc_start4 SC_L_LIFEPOTION,( .Duration * 1000 ),-10,1,0,0;
  break;
 Case 4:
  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;
  break;
 Case 5:
  sc_start SC_SpeedUp1,( .Duration * 1000 ),0;
  break;
}
announce "[ "+strcharinfo(0)+" ] has gained "+.Names$[.Runes]+".",bc_map;
set .Runes,0;
initnpctimer;
end;

OnInit:
OnTimer60000:
set .Duration,60;
setarray .Names$,
  "Runes",
  "Double Attack",
  "Invisibility",
  "Regeneration",
  "Clone",
  "Haste";

if( !.Runes ) set .Runes,rand( 1,getarraysize( .Names$ ) );
stopnpctimer;
while( 1 ){
delwaitingroom;
waitingroom (( .Runes )? "   "+.Names$[.Runes]:"Cooldown "+( 60 - (getnpctimer(0)/1000) )+" Sec." ) ,0;
sleep 1000;
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

erm...i guess it would be something like this ?

anyway...the..Invisible part...it doesnt work when i use Cloaking..>.<

so i have no idea how to make that...perhaps other member might have a better way to do so ~

prontera,155,181,5 script Sample 757,2,2,{
dispbottom "Walkthrough to get Runes.";
end;
OnTouch:
switch( .Runes ){
 default:
 Case 0:
  dispbottom "No Runes Right now.";
  end;
 Case 1:
  sc_start SC_INCATKRATE,( .Duration * 1000 ),100;
  break;
 Case 2:
  sc_start SC_CLOAKING,( .Duration * 1000 ),10;
  break;
 Case 3:
  sc_start4 SC_L_LIFEPOTION,( .Duration * 1000 ),-10,1,0,0;
  break;
 Case 4:
  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;
  break;
 Case 5:
  sc_start SC_SpeedUp1,( .Duration * 1000 ),0;
  break;
}
announce "[ "+strcharinfo(0)+" ] has gained "+.Names$[.Runes]+".",bc_map;
set .Runes,0;
initnpctimer;
end;

OnInit:
OnTimer60000:
set .Duration,60;
setarray .Names$,
  "Runes",
  "Double Attack",
  "Invisibility",
  "Regeneration",
  "Clone",
  "Haste";

if( !.Runes ) set .Runes,rand( 1,getarraysize( .Names$ ) );
stopnpctimer;
while( 1 ){
delwaitingroom;
waitingroom (( .Runes )? "   "+.Names$[.Runes]:"Cooldown "+( 60 - (getnpctimer(0)/1000) )+" Sec." ) ,0;
sleep 1000;
}
end;
}

Thanks a lot Master Emistry... I will try this now and see if its work..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Try this... I modified Emistry's script a little..

*ADDED MATKRATE in DoubleDamage,

*ADDED temporary Cloaking skill to use Invisibilty...

*ADDED auto uncloak....

*USED SC_REGENERATION to make sp regen too..

*USED own durations..

*USED dispbottom instead of announce...

The problems I encountered are SC_REGENERATION can't be stop when hp/sp full.. :D

and sometimes it is stuck to the case 0, showing nothing in the waiting room and no rune to be retrieved, i don't know why..

If you find any more bugs, just post.. :P

prontera,155,170,4,    script    Runes    837,2,2,{
dispbottom "Walkthrough to get Runes.";
end;
OnTouch:
switch( .Runes ){
 Case 1:
  sc_start SC_INCATKRATE,60000,100;
  sc_start SC_INCMATKRATE,60000,100;
  disablenpc "Runes";
  break;
 Case 2:
  initnpctimer "Runes",1;
  skill "AS_CLOAKING",10,1;
  sc_start SC_CLOAKING,60000,10;
  stopnpctimer "Runes",1;
  disablenpc "Runes";
  break;
 Case 3:
  sc_start4 SC_REGENERATION,60000,-10,1,0,0;
  disablenpc "Runes";
  break;
 Case 4:
  getmapxy( .@Map$,.@X,.@Y,0,strcharinfo(0) );
  clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,60;
  clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,60;
  disablenpc "Runes";
  break;
 Case 5:
  sc_start SC_SpeedUp1,60000,0;
  disablenpc "Runes";
  break;
}
dispbottom "You have gained "+.Names$[.Runes]+" for 1 minute!";
set .Runes,0;
initnpctimer;
end;

OnInit:
OnTimer60000:
setarray .Names$,"Runes","Double Damage","Invisibility","Regeneration","Clone","Haste";
sc_end SC_CLOAKING;
enablenpc "Runes";

set .Runes,rand( 1,5);
stopnpctimer;
while( 1 ){
delwaitingroom;
waitingroom (( .Runes )? "   "+.Names$[.Runes]:"Cooldown "+( 60 - (getnpctimer(0)/1000) )+" Sec." ) ,0;
sleep 1000;
}
end;
}

Reason for edit: codebox

Reason for edit2: Possible Fix for the 2nd bug... Now fully working for me...

Edited by wakoko321
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

how to use this? I mean what map the rune's will respawn? can I used it in my pvp map?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

how to use this? I mean what map the rune's will respawn? can I used it in my pvp map?

yes you can use this, just change the header of the script... and you can also change the npc scprite to your liking...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

Its working, no bug as of now..thanks

how to set it in 2 minutes to re-spawn but the effect will still remain 1 minute?

Edited by maynard
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Its working, no bug as of now..thanks

Just tell me if you found one...

As of now, I'm finding a way to duplicate the npc and make it look like more the dota runes which has two spawns but one at a time...

It can be done if making another npc, but I can't get it to work with a duplicate.. :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

ahh ok, waiting, so how about the timer if im not mistaken you can get runes every 2 minutes.What I mean to say is the runes will only get every 2 minutes or change it to 5 minutes but the DD haste clone effect will only last 1 minute.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  126
  • Reputation:   6
  • Joined:  11/18/11
  • Last Seen:  

 Case 2:
  initnpctimer "Runes",1;
  skill "AS_CLOAKING",10,1;
  sc_start SC_CLOAKING,60000,10;
  stopnpctimer "Runes",1;
  disablenpc "Runes";
  break;

Wakoko.thist will start Assassin Cloaking at level 10 right? and the effect is SC_Cloaking.

is there any way to insert this command to items,? meaning when someone wore that item he will get cloaking. but no like Assassin Cross card. The Cloaking have duration and cooldown.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

ahh ok, waiting, so how about the timer if im not mistaken you can get runes every 2 minutes.What I mean to say is the runes will only get every 2 minutes or change it to 5 minutes but the DD haste clone effect will only last 1 minute.

EDIT: ATM, you can try to change the OnTimer...

60000 = 1min.

120000 = 2min. and so on..

after changing the on timer.. just change the value of

( 60 - (getnpctimer(0)/1000) )+" Sec." )

if your Ontimer is 120000... change it to...

( 120 - (getnpctimer(0)/1000) )+" Sec." )

Yes, that's why I'm planning to change the timer just like in ToastofDoom's WOE Setter or AnnieRuru's Private MVP Room.. but it's complicated.. XD

But I will try my best to do so.. :P

 Case 2:
  initnpctimer "Runes",1;
  skill "AS_CLOAKING",10,1;
  sc_start SC_CLOAKING,60000,10;
  stopnpctimer "Runes",1;
  disablenpc "Runes";
  break;

Wakoko.thist will start Assassin Cloaking at level 10 right? and the effect is SC_Cloaking.

is there any way to insert this command to items,? meaning when someone wore that item he will get cloaking. but no like Assassin Cross card. The Cloaking have duration and cooldown.

i think you cold just insert it like this in the itemdb.. EDIT: Tested and working with me but it will not uncloak you...

{ skill "AS_CLOAKING",10,1; sc_start SC_CLOAKING,60000,10; },{},{}

Edited by wakoko321
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

would it possible to add timer for other item effects? like the white lady card effect "bonus bHealPower,30;", but with timer for an usable item?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

well...thank for wakoko's script..which remind me on how to make the cloaking to work...xD

hahaha

@TS..you can try this 1

http://pastebin.com/raw.php?i=DP99WyLK

edit the Runes Duration here ( in Seconds )

// Runes Duration in Seconds set .Duration,5;

Coordinate Lists where it will Spawn Randomly..

// Random Coordinate where NPC will Shown Again
setarray .CoordinateX[0],150,155;
setarray .CoordinateY[0],175,175;

this NPC only apply on 1 Map..if you want to use in other map...i suggest to duplicate the whole script and edit the location and coordiante random lists..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Here, I was able to make it duplicable but can't make it to have the duplicates have their own Waitingroom with the rune they have...

Each duplicate will have their own cooldown and will appear after the duration of the runes...

Each duplicate has different runes...

- script Runes -1,{
set .@dif, strnpcinfo(2);
if ( .remind[.@dif] == 0 ) {
 set .remind[.@dif], 1;
 initnpctimer;
}
dispbottom "Walkthrough to get Runes.";
end;
OnTouch:
switch( .Runes ){
 Case 1:
  sc_start SC_INCATKRATE,60000,100;
  sc_start SC_INCMATKRATE,60000,100;
  break;
 Case 2:
  initnpctimer "Runes",1;
  skill "AS_CLOAKING",10,1;
  sc_start SC_CLOAKING,60000,10;
  stopnpctimer "Runes",1;
  break;
 Case 3:
  sc_start4 SC_REGENERATION,60000,-10,1,0,0;
  break;
 Case 4:
  getmapxy( .@Map$,.@X,.@Y,0,strcharinfo(0) );
  clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,60;
  clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,60;
  break;
 Case 5:
  sc_start SC_SpeedUp1,60000,0;
  break;
}
dispbottom "You have gained "+.Names$[.Runes]+" for 1 minute!";
disablenpc strnpcinfo(0);
set .Runes,0;
initnpctimer;
set .timeout, 1; // Set this for the cooldown of Runes
if ( .timeout == 0 ) set .timeout, 1; // Set this for the cooldown of Runes
set .@dif, strnpcinfo(2);
set .remind[.@dif], 0;
set .starttime[.@dif], gettimetick(2);
do {
 set .remaintime[.@dif], .timeout * 60 + .starttime[.@dif] - gettimetick(2);
 set .@hour[.@dif], .remainTime[.@dif] / 3600 ;
 set .@min[.@dif], .remainTime[.@dif] % 3600 / 60 ;
 set .@sec[.@dif], .remainTime[.@dif] % 3600 % 60 ;
 delwaitingroom strnpcinfo(0);
 waitingroom "Cooldown "+( ( .@hour[.@dif] )?( .@hour[.@dif] +":"):"" )+( ( .@min[.@dif] < 10 )?"0"+ .@min[.@dif]: .@min[.@dif] )+":"+( ( .@sec[.@dif] < 10 )?"0"+ .@sec[.@dif]: .@sec[.@dif] ), 0;
 set .Runes,rand(1,5);
 sleep 995;
} while ( .remaintime[.@dif] > 1 );
set .remaintime[.@dif], 0;
delwaitingroom strnpcinfo(0);
end;
OnInit:
OnTimer60000: //Change this if you changed the cooldown for Runes...
setarray .Names$,"Runes","Double Damage","Invisibility","Regeneration","Clone","Haste";
sc_end SC_CLOAKING;
enablenpc strnpcinfo(0);
set .Runes,rand( 1,5);
stopnpctimer;
}
prontera,159,164,4, duplicate(Runes) Runes#1 837,2,2
prontera,154,159,4, duplicate(Runes) Runes#2 837,2,2

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

Sir can you change the rune? I want it to be useful to my server, Double Damage, Haste, def +90, mdef +90, perfect dodge 100,Flee +300, HP +200%. sorry if off topic.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Sir can you change the rune? I want it to be useful to my server, Double Damage, Haste, def +90, mdef +90, perfect dodge 100,Flee +300, HP +200%. sorry if off topic.

Can't find for the others.. maybe I just overlooked them... :)

Added some requested runes and cleaned the script a little bit..

- script Runes -1,{
set .@dif, strnpcinfo(2);
if ( .remind[.@dif] == 0 ) {
 set .remind[.@dif], 1;
 initnpctimer;
}

dispbottom "Walkthrough to get Runes.";
end;

OnTouch:
switch( .Runes ){
Case 1: // Double Damage
 sc_start SC_INCATKRATE,( .Duration * 1000 ),100;
 sc_start SC_INCMATKRATE,( .Duration * 1000 ),100;
 break;
Case 2: // Invisibilty
 initnpctimer "Runes",1;
 skill "AS_CLOAKING",10,1;
 sc_start SC_CLOAKING,( .Duration * 1000 ),10;
 stopnpctimer "Runes",1;
 break;
Case 3: // Regeneration
 sc_start4 SC_REGENERATION,( .Duration * 1000 ),-10,1,0,0;
 break;
Case 4: // Illusion
 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;
 break;
Case 5: // Haste
 sc_start SC_SpeedUp1,( .Duration * 1000 ),0;
 break;
Case 6: // Increase Flee
 sc_start SC_INCFLEE,( .Duration * 1000 ),300;
 break;
Case 7: // Double HP
 sc_start SC_INCMHPRATE,( .Duration * 1000 ),100;
 break;
//Add New Runes Here...
}
dispbottom "You have gained "+.Names$[.Runes]+" for 1 minute!";
disablenpc strnpcinfo(0);
set .Runes,0;
initnpctimer;
set .timeout, 1; // Set this for the cooldown of Runes in minutes...
if ( .timeout == 0 ) set .timeout, 1; // Set this for the cooldown of Runes...
set .@dif, strnpcinfo(2);
set .remind[.@dif], 0;
set .starttime[.@dif], gettimetick(2);
do {
 set .remaintime[.@dif], .timeout * 60 + .starttime[.@dif] - gettimetick(2);
 set .@hour[.@dif], .remainTime[.@dif] / 3600 ;
 set .@min[.@dif], .remainTime[.@dif] % 3600 / 60 ;
 set .@sec[.@dif], .remainTime[.@dif] % 3600 % 60 ;
 delwaitingroom strnpcinfo(0);
 waitingroom "Cooldown "+( ( .@hour[.@dif] )?( .@hour[.@dif] +":"):"" )+( ( .@min[.@dif] < 10 )?"0"+ .@min[.@dif]: .@min[.@dif] )+":"+( ( .@sec[.@dif] < 10 )?"0"+ .@sec[.@dif]: .@sec[.@dif] ), 0;
 set .Runes,rand(1,( getarraysize( .Names$ ) - 1 ));
 sleep 995;
} while ( .remaintime[.@dif] > 1 );
set .remaintime[.@dif], 0;
delwaitingroom strnpcinfo(0);
end;

OnInit:
OnTimer60000: //Change this if you changed the cooldown for Runes...
setarray .Names$[1],
"Double Damage",
"Invisibility",
"Regeneration",
"Illusion",
"Haste",
"Increase Flee",
"Double HP";
//Add the Name of the Rune Here..

// Status to be ended....
sc_end SC_CLOAKING;

// NPC will show again...
enablenpc strnpcinfo(0);

// Settings
set .Duration,60; //Change the Duration of Runes here...
set .Runes,rand( 1,( getarraysize( .Names$ ) - 1 ));
stopnpctimer;
}

//Duplicates here....
prontera,159,164,4, duplicate(Runes) Runes#1 837,2,2
prontera,154,159,4, duplicate(Runes) Runes#2 837,2,2

Edited by wakoko321
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

This is good, the one I used is Emistry script but I will try wakoko's too..

anywany, is there a chance that we can change it to a monster but I have my own sprite..

OnClick -> Activate runes

just like Treasure Hunting event, when if you click the Treasure Box, you will receive the rewards but this time we will change it to a customize mob so anyone can take it... is it possible?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

This is good, the one I used is Emistry script but I will try wakoko's too..

anywany, is there a chance that we can change it to a monster but I have my own sprite..

OnClick -> Activate runes

just like Treasure Hunting event, when if you click the Treasure Box, you will receive the rewards but this time we will change it to a customize mob so anyone can take it... is it possible?

Yes you can change the sprite to your custom sprite.. and if you want onClick,

delete the following...

dispbottom "Walkthrough to get Runes.";

end;

OnTouch:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

for double damage.. i think edp can do.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

@emistry

OnInit:

// Runes Duration in Seconds

set .Duration,5; <<<< I change it to 120 so this will be 2 minutes, right?

Anyway I also try your script but after a while they don't re-spawn, I was AFk for two hours then when I play again the runes doesn't re-spawn. I don't know what happen and there's no error.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

for double damage.. i think edp can do.

You can modify it to your likings... Just have made what has been requested by the TS...

@emistry

OnInit:

// Runes Duration in Seconds

set .Duration,5; <<<< I change it to 120 so this will be 2 minutes, right?

Anyway I also try your script but after a while they don't re-spawn, I was AFk for two hours then when I play again the runes doesn't re-spawn. I don't know what happen and there's no error.

Emistry's script has a change respawn thing... after the npc has been triggered, it will respawn to random coordinates which has been set in the settings...

I tested the random coordinate into my script but not the whole script he made...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

@wakoko321 can you add the random re-spawn to your script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

@wakoko321 can you add the random re-spawn to your script?

Just added the random respawn...

- script Runes -1,{
set .@dif, strnpcinfo(2);
if ( .remind[.@dif] == 0 ) {
 set .remind[.@dif], 1;
 initnpctimer;
}
dispbottom "Walkthrough to get Runes.";
end;
OnTouch:
switch( .Runes ){
Case 1: // Double Damage
 sc_start SC_INCATKRATE,( .Duration * 1000 ),100;
 sc_start SC_INCMATKRATE,( .Duration * 1000 ),100;
 break;
Case 2: // Invisibilty
 initnpctimer "Runes",1;
 skill "AS_CLOAKING",10,1;
 sc_start SC_CLOAKING,( .Duration * 1000 ),10;
 stopnpctimer "Runes",1;
 break;
Case 3: // Regeneration
 sc_start4 SC_REGENERATION,( .Duration * 1000 ),-10,1,0,0;
 break;
Case 4: // Illusion
 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;
 break;
Case 5: // Haste
 sc_start SC_SpeedUp1,( .Duration * 1000 ),0;
 break;
Case 6: // Increase Flee
 sc_start SC_INCFLEE,( .Duration * 1000 ),300;
 break;
Case 7: // Double HP
 sc_start SC_INCMHPRATE,( .Duration * 1000 ),100;
 break;
//Add New Runes Here...
}
dispbottom "You have gained "+.Names$[.Runes]+" for 1 minute!";
disablenpc strnpcinfo(0);
set .Runes,0;
initnpctimer;
set .timeout, 1; // Set this for the cooldown of Runes in minutes...
if ( .timeout == 0 ) set .timeout, 1; // Set this for the cooldown of Runes...
set .@dif, strnpcinfo(2);
set .remind[.@dif], 0;
set .starttime[.@dif], gettimetick(2);
do {
 set .remaintime[.@dif], .timeout * 60 + .starttime[.@dif] - gettimetick(2);
 set .@hour[.@dif], .remainTime[.@dif] / 3600 ;
 set .@min[.@dif], .remainTime[.@dif] % 3600 / 60 ;
 set .@sec[.@dif], .remainTime[.@dif] % 3600 % 60 ;
 delwaitingroom strnpcinfo(0);
 waitingroom "Cooldown "+( ( .@hour[.@dif] )?( .@hour[.@dif] +":"):"" )+( ( .@min[.@dif] < 10 )?"0"+ .@min[.@dif]: .@min[.@dif] )+":"+( ( .@sec[.@dif] < 10 )?"0"+ .@sec[.@dif]: .@sec[.@dif] ), 0;
 set .Runes,rand(1,( getarraysize( .Names$ ) - 1 ));
 sleep 995;
} while ( .remaintime[.@dif] > 1 );
set .remaintime[.@dif], 0;
delwaitingroom strnpcinfo(0);
end;
OnInit:
OnTimer60000: //Change this if you changed the cooldown for Runes...
setarray .Names$[1],
"Double Damage",
"Invisibility",
"Regeneration",
"Illusion",
"Haste",
"Increase Flee",
"Double HP";
//Add the Name of the Rune Here..
// Random Coordinate where NPC will Shown Again
setarray .CoordinateX[0],150,155;
setarray .CoordinateY[0],175,175;
// Status to be ended....
sc_end SC_CLOAKING;
set .Random,rand( getarraysize( .CoordinateX ) );
movenpc strnpcinfo(0),.CoordinateX[ .Random ],.CoordinateY[ .Random ];
// NPC will show again...
enablenpc strnpcinfo(0);
// Settings
set .Duration,60; //Change the Duration of Runes here...
set .Runes,rand( 1,( getarraysize( .Names$ ) - 1 ));
stopnpctimer;
}
//Duplicates here....
prontera,159,164,4, duplicate(Runes) Runes#1 837,2,2
prontera,154,159,4, duplicate(Runes) Runes#2 837,2,2

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

for double damage.. i think edp can do.

for double damage.. i think edp can do.

EDP doesnt not only give 2x of damage..perhap it is at least of 3x....

@emistry

OnInit:

// Runes Duration in Seconds

set .Duration,5; <<<< I change it to 120 so this will be 2 minutes, right?

Anyway I also try your script but after a while they don't re-spawn, I was AFk for two hours then when I play again the runes doesn't re-spawn. I don't know what happen and there's no error.

yes...it will be 2 minutes....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

No, dont use EDP... we can use STRIKING skill by Sorcerer which gives a great amount of ATK. I think ATK+250 and if possible, for Mage type, It will add MATK+250.. i think that will do the job..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...