summaryrefslogtreecommitdiff
path: root/npc/003-13/arnea.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-22 22:33:47 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-22 22:33:47 -0300
commit491e8ddcdbb811d3cace0244c3f548ebd7f7c0b7 (patch)
treea5a52a9d5c2fdc0dfe3db224ac52376819a68eb4 /npc/003-13/arnea.txt
parent085d00bd72fb94793a79e625d18797936d5e8e93 (diff)
downloadserverdata-491e8ddcdbb811d3cace0244c3f548ebd7f7c0b7.tar.gz
serverdata-491e8ddcdbb811d3cace0244c3f548ebd7f7c0b7.tar.bz2
serverdata-491e8ddcdbb811d3cace0244c3f548ebd7f7c0b7.tar.xz
serverdata-491e8ddcdbb811d3cace0244c3f548ebd7f7c0b7.zip
New syntax for readbattleparam()
Diffstat (limited to 'npc/003-13/arnea.txt')
-rw-r--r--npc/003-13/arnea.txt72
1 files changed, 36 insertions, 36 deletions
diff --git a/npc/003-13/arnea.txt b/npc/003-13/arnea.txt
index 58ce04fe4..79cd7cfca 100644
--- a/npc/003-13/arnea.txt
+++ b/npc/003-13/arnea.txt
@@ -68,19 +68,19 @@ L_Manage:
'udt_Int=readparam2(bInt);
'udt_Dex=readparam2(bDex);
'udt_Luk=readparam2(bLuk);
- 'udt_Dly=readbattleparam(UDT_ADELAY);
- 'udt_Rng=readbattleparam(UDT_ATKRANGE);
+ 'udt_Dly=readbattleparam(getcharid(3), UDT_ADELAY);
+ 'udt_Rng=readbattleparam(getcharid(3), UDT_ATKRANGE);
// Save (b)ase data
'udt_bhp=MaxHp;
- 'udt_bAtk1=readbattleparam(UDT_ATKMIN);
- 'udt_bAtk2=readbattleparam(UDT_ATKMAX);
- 'udt_bMatk=readbattleparam(UDT_MATKMAX);
- 'udt_bDef=readbattleparam(UDT_DEF);
- 'udt_bMdef=readbattleparam(UDT_MDEF);
- 'udt_bHit=readbattleparam(UDT_HIT);
- 'udt_bFlee=readbattleparam(UDT_FLEE);
- 'udt_bCrit=readbattleparam(UDT_CRIT);
+ 'udt_bAtk1=readbattleparam(getcharid(3), UDT_ATKMIN);
+ 'udt_bAtk2=readbattleparam(getcharid(3), UDT_ATKMAX);
+ 'udt_bMatk=readbattleparam(getcharid(3), UDT_MATKMAX);
+ 'udt_bDef=readbattleparam(getcharid(3), UDT_DEF);
+ 'udt_bMdef=readbattleparam(getcharid(3), UDT_MDEF);
+ 'udt_bHit=readbattleparam(getcharid(3), UDT_HIT);
+ 'udt_bFlee=readbattleparam(getcharid(3), UDT_FLEE);
+ 'udt_bCrit=readbattleparam(getcharid(3), UDT_CRIT);
// Save (p)rogression data
'udt_php='udt_bhp/5;
@@ -94,19 +94,19 @@ L_Manage:
'udt_pCrit='udt_bCrit/10;
/*
- .@a1=readbattleparam(UDT_ATKRANGE);
- .@a2=readbattleparam(UDT_ATKMIN);
- .@a3=readbattleparam(UDT_ATKMAX);
- .@d1=readbattleparam(UDT_DEF);
- .@d2=readbattleparam(UDT_MDEF);
- .@c1=readbattleparam(UDT_HIT);
- .@c2=readbattleparam(UDT_FLEE);
- .@m1=readbattleparam(UDT_MATKMIN);
- .@m2=readbattleparam(UDT_MATKMAX);
- .@m3=readbattleparam(UDT_ELETYPE);
- .@s1=readbattleparam(UDT_STR);
- .@s2=readbattleparam(UDT_ADELAY);
- .@s3=readbattleparam(UDT_DMOTION);
+ .@a1=readbattleparam(getcharid(3), UDT_ATKRANGE);
+ .@a2=readbattleparam(getcharid(3), UDT_ATKMIN);
+ .@a3=readbattleparam(getcharid(3), UDT_ATKMAX);
+ .@d1=readbattleparam(getcharid(3), UDT_DEF);
+ .@d2=readbattleparam(getcharid(3), UDT_MDEF);
+ .@c1=readbattleparam(getcharid(3), UDT_HIT);
+ .@c2=readbattleparam(getcharid(3), UDT_FLEE);
+ .@m1=readbattleparam(getcharid(3), UDT_MATKMIN);
+ .@m2=readbattleparam(getcharid(3), UDT_MATKMAX);
+ .@m3=readbattleparam(getcharid(3), UDT_ELETYPE);
+ .@s1=readbattleparam(getcharid(3), UDT_STR);
+ .@s2=readbattleparam(getcharid(3), UDT_ADELAY);
+ .@s3=readbattleparam(getcharid(3), UDT_DMOTION);
debugmes "Unit Data %d (Str %d)", getcharid(3), .@s1;
debugmes "Atk (%d~%d) Range %d", .@a2, .@a3, .@a1;
@@ -177,33 +177,33 @@ OnUDTUpdate:
// Check for possible cheats, and update default values
OnVerify:
- if (readbattleparam(UDT_ATKRANGE) > 'udt_Rng)
- 'udt_Rng=readbattleparam(UDT_ATKRANGE);
+ if (readbattleparam(getcharid(3), UDT_ATKRANGE) > 'udt_Rng)
+ 'udt_Rng=readbattleparam(getcharid(3), UDT_ATKRANGE);
- if (readbattleparam(UDT_ATKMAX) > 'udt_bAtk1) {
- 'udt_bAtk1=readbattleparam(UDT_ATKMIN);
- 'udt_bAtk2=readbattleparam(UDT_ATKMAX);
+ if (readbattleparam(getcharid(3), UDT_ATKMAX) > 'udt_bAtk1) {
+ 'udt_bAtk1=readbattleparam(getcharid(3), UDT_ATKMIN);
+ 'udt_bAtk2=readbattleparam(getcharid(3), UDT_ATKMAX);
'udt_pAtk1='udt_bAtk1/10;
'udt_pAtk2='udt_bAtk2/10;
}
- if (readbattleparam(UDT_DEF) > 'udt_bDef) {
- 'udt_bDef=readbattleparam(UDT_DEF);
+ if (readbattleparam(getcharid(3), UDT_DEF) > 'udt_bDef) {
+ 'udt_bDef=readbattleparam(getcharid(3), UDT_DEF);
'udt_pDef='udt_bDef/5;
}
- if (readbattleparam(UDT_MDEF) > 'udt_bMdef) {
- 'udt_bMdef=readbattleparam(UDT_MDEF);
+ if (readbattleparam(getcharid(3), UDT_MDEF) > 'udt_bMdef) {
+ 'udt_bMdef=readbattleparam(getcharid(3), UDT_MDEF);
'udt_pMdef='udt_bMdef/5;
}
- if (readbattleparam(UDT_MATKMAX) > 'udt_bMatk) {
- 'udt_bMatk=readbattleparam(UDT_MATKMAX);
+ if (readbattleparam(getcharid(3), UDT_MATKMAX) > 'udt_bMatk) {
+ 'udt_bMatk=readbattleparam(getcharid(3), UDT_MATKMAX);
'udt_pMatk='udt_bMatk/5;
}
- if (readbattleparam(UDT_ADELAY) < 'udt_bDly)
- 'udt_bDly=readbattleparam(UDT_DELAY);
+ if (readbattleparam(getcharid(3), UDT_ADELAY) < 'udt_bDly)
+ 'udt_bDly=readbattleparam(getcharid(3), UDT_DELAY);
addtimer 5000, instance_npcname(.name$)+"::OnVerify";
end;