AnnieRuru
~~Cute~Cute~Scripter~~
- Messages
- 1,677
- Points
- 0
- Location
- your next door ~
- Discord
- AnnieRuru#1609
- Github
- AnnieRuru
- Emulator
- Client Version
- 2019-05-30aRagexeRE
someone else has tried to pull request in hercules, -> https://github.com/HerculesWS/Hercules/pull/351
but it was denied, so have to leave this as plugin
UPDATE: rathena has taken out -> https://github.com/rathena/rathena/commit/b65443d8f564175196d57ef9bc1d000a5661fbdc
Download : 2.1
plugin
Tested with:
conf\import\OnPCStatCalcEvent.conf
both `@reloadscript` and `@reloadonpcstatcalcevent` command can reload conf\import\OnPCStatCalcEvent.conf file
`@reloadscript` = reload everything -> cause destruction on live server
`@reloadonpcstatcalcevent` = only reload conf\import\OnPCStatCalcEvent.conf file , combine with `@reloadnpc` command -> not so destructive
script: (
{ // give GM permanent bonus ?
OnPCStatCalcEvent:
<"
bonus bVit, 1234;
end;
">
},
{ // for xxx event
OnPCStatCalcEvent:
<"
skill TF_HIDING, 1;
end;
">
},
{ // npc/custom/xxxevent.txt
OnPCStatCalcEvent:
<"
if (@a) {
bonus bStr, 1000;
skill WZ_ICEWALL, 1;
}
end;
">
},
)
script
prontera,158,185,5 script djk2sfhsd 1_F_MARIA,{
@a ^= 1;
mes "hmm...";
recalculatestat();
next;
mes "what ?";
@a ^= 1;
recalculatestat();
next;
mes "maybe...";
@a ^= 1;
recalculatestat();
next;
mes "probably...";
@a ^= 1;
recalculatestat();
next;
mes "yeah...";
@a ^= 1;
recalculatestat();
close;
}
yes, this actually works !!
with version 2.0 onwards,
no more spamming <npc name>::OnPCStatCalcEvent !!
and even `*skill` working perfectly fine now
1.0 - plugin
1.1 - plugin
- found a way to get *recalculatestat working, although its not thread-safe, but meh ~
1.2 - plugin
- remove some nullpo
1.3 - plugin
- update to latest hercules revision
2.0 - plugin
- overhaul the way how to give player permanent bonus, now no more using npc label, but using an external file
- fix `*skill` doesn't work correctly previously
- `*recalculatestat` no longer using addtimer hack
- no more spamming "<npc name>::OnPCStatCalcEvent" anymore !!! yes tested !!
2.1 - plugin
- add `@reloadonpcstatcalcevent` to safely reload only OnPCStatCalcEvent.conf file without using the destructive `@reloadscript`
1.1 - plugin
- found a way to get *recalculatestat working, although its not thread-safe, but meh ~
1.2 - plugin
- remove some nullpo
1.3 - plugin
- update to latest hercules revision
2.0 - plugin
- overhaul the way how to give player permanent bonus, now no more using npc label, but using an external file
- fix `*skill` doesn't work correctly previously
- `*recalculatestat` no longer using addtimer hack
- no more spamming "<npc name>::OnPCStatCalcEvent" anymore !!! yes tested !!
2.1 - plugin
- add `@reloadonpcstatcalcevent` to safely reload only OnPCStatCalcEvent.conf file without using the destructive `@reloadscript`
Last edited by a moderator: