Jump to content

Recommended Posts

Posted

since I discover this OnPCStatCalcEvent

I keep bringing it up in scripting section

and I start to get sick I have to update this patch every single time when I comply a request with it

http://rathena.org/board/topic/76088-skill-in-map/#entry166271

http://rathena.org/board/topic/77185-function-changelook-random-viewid/#entry171792

and a few unused like

http://rathena.org/board/topic/74206-close-drop-certain-item-on-certain-map/#entry155980

http://rathena.org/board/topic/72989-capture-the-flag-woe-script/#entry150735

I believe this mod is very very helpful

for example, in this topic

-	script	kdfjshksfjhksdfj	-1,{
OnPCStatCalcEvent:
bonus2 bExpAddRace,10,100; // PS: ... can someone confirm this exp is getting more than usual ?
bonus2 bExpAddRace,11,100;
end;
}

  • Upvote 3
Posted (edited)

as far as I concern, the script under OnPCStatCalcEvent label is very short

OnPCStatCalcEvent:
if ( strcharinfo(3) == "guild_vs2" && .Juggernaught_aid == getcharid(3) ) // conditions
bonus .... ; // put all the bonus
end;// that's all ^.^

the only things that really concern you is the condition to add the bonus ?

( /str+ 255 will run the script 255 times, no ?)
lol ? isn't the equipments { Iitem Script } field also run the item script field 255 times ?

http://www.eathena.w...dpost&p=1007915

whats the difference ?

and @str 255 will run the script field once, as well as OnPCStatCalcEvent also once

OnPCIdleEvent, OnPCUseSkill, OnPCAttackEvent, OnPCChatEvent

for these 4 I might reconsider, but this one I don't mind


still not convince enough ?

originally, if we want a donators in a server to gain a permanent status boost

we can either

1. use sc_start with high amount <-- looks noob code

2. create a new equipment with insane stats <-- more practical, and everyone currently doing this

but the equipment might broke or strip ( can counter with bUnbreakable*** and bUnstripable*** though )

or this

3. OnPCStatCalcEvent

OnPCStatCalcEvent:
   if ( getgroupid() == 1 ) { // Super Player
       bonus bAllStats, 10;
       bonus2 bExpAddRace,10,100;
       bonus2 bExpAddRace,11,100;
   }
   end;

super player gains a permanent +10 all stats and +100% exp gain by just being a Super Player

with no.2, if use /str+100 also execute donator equipment's Item script 100 times

or no.3, /str+100 also execute this label 100 times

I don't see any difference

Edited by AnnieRuru
  • Upvote 1
Posted
( /str+ 255 will run the script 255 times, no ?)
lol ? isn't the equipments { Iitem Script } field also run the item script field 255 times ?

Yeah you're right :)

  • Upvote 2
Posted

Ya so i really want this implemented now, I've added to my test server using AnnieRuru's patch, and it makes some script so much easier to make.

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...