From 0f1d0507eb95cf07ce7eb66d89ad9853938612e6 Mon Sep 17 00:00:00 2001 From: Asheraf Date: Mon, 29 Aug 2016 17:40:13 +0100 Subject: change *strcharinfo to use constants --- db/pre-re/item_db.conf | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'db/pre-re') diff --git a/db/pre-re/item_db.conf b/db/pre-re/item_db.conf index b61f1ec0e..1ba177d18 100644 --- a/db/pre-re/item_db.conf +++ b/db/pre-re/item_db.conf @@ -30625,7 +30625,7 @@ item_db: ( noauction: true } Script: <" - if(strcharinfo(3)=="job3_arch02") { + if(strcharinfo(PC_MAP)=="job3_arch02") { bonus2 bAddDefClass,1761,50; bonus2 bAddDefClass,1762,50; } @@ -34064,7 +34064,7 @@ item_db: ( bonus2 bHPLossRate,666,10000; "> OnUnequipScript: <" - if((Hp <= 999) && !getmapflag(strcharinfo(3),mf_pvp) && !getmapflag(strcharinfo(3),mf_pvp_noparty) && !getmapflag(strcharinfo(3),mf_pvp_noguild)) { + if((Hp <= 999) && !getmapflag(strcharinfo(PC_MAP),mf_pvp) && !getmapflag(strcharinfo(PC_MAP),mf_pvp_noparty) && !getmapflag(strcharinfo(PC_MAP),mf_pvp_noguild)) { heal (1-Hp),0; } else { @@ -70176,7 +70176,7 @@ item_db: ( } Script: <" input @megaphone$; - announce strcharinfo(0) + ": " + @megaphone$,bc_all,0xFF0000; + announce strcharinfo(PC_NAME) + ": " + @megaphone$,bc_all,0xFF0000; end; "> }, @@ -70590,7 +70590,7 @@ item_db: ( noauction: true } Script: <" - if(strcharinfo(3)=="job3_rang02") { + if(strcharinfo(PC_MAP)=="job3_rang02") { monster "this",-1,-1,"--ja--",1904,1,""; } @@ -72394,7 +72394,7 @@ item_db: ( Buy: 10 Weight: 10 Script: <" - if (strcharinfo(3) == "job3_arch02") { + if (strcharinfo(PC_MAP) == "job3_arch02") { mercenary_create VALKYRIE_A, 1800000; } @@ -72408,7 +72408,7 @@ item_db: ( Buy: 10 Weight: 10 Script: <" - if (strcharinfo(3) == "job3_arch02") { + if (strcharinfo(PC_MAP) == "job3_arch02") { mercenary_create VALKYRIE_B, 1800000; } @@ -72440,7 +72440,7 @@ item_db: ( noauction: true } Script: <" - //if(strcharinfo(3)=="job3_war02") { + //if(strcharinfo(PC_MAP)=="job3_war02") { // itemskill WL_FROSTMISTY,5; //} "> @@ -72461,7 +72461,7 @@ item_db: ( noauction: true } Script: <" - //if(strcharinfo(3)=="job3_war02") { + //if(strcharinfo(PC_MAP)=="job3_war02") { // itemskill WL_CRIMSONROCK,5; //} "> @@ -72482,7 +72482,7 @@ item_db: ( noauction: true } Script: <" - //if(strcharinfo(3)=="job3_war02") { + //if(strcharinfo(PC_MAP)=="job3_war02") { // itemskill WL_CHAINLIGHTNING,5; //} "> @@ -72503,7 +72503,7 @@ item_db: ( noauction: true } Script: <" - //if(strcharinfo(3)=="job3_war02") { + //if(strcharinfo(PC_MAP)=="job3_war02") { // itemskill WL_EARTHSTRAIN,5; //} "> @@ -72528,7 +72528,7 @@ item_db: ( sitting: true } Script: <" - //if(strcharinfo(3)=="job3_rune02") { + //if(strcharinfo(PC_MAP)=="job3_rune02") { // itemskill RK_CRUSHSTRIKE,1; //} "> @@ -72553,7 +72553,7 @@ item_db: ( sitting: true } Script: <" - //if(strcharinfo(3)=="job3_rune02") { + //if(strcharinfo(PC_MAP)=="job3_rune02") { // itemskill RK_STORMBLAST,1; //} "> @@ -72578,7 +72578,7 @@ item_db: ( sitting: true } Script: <" - //if(strcharinfo(3)=="job3_rune02") { + //if(strcharinfo(PC_MAP)=="job3_rune02") { // itemskill RK_MILLENNIUMSHIELD,1; //} "> -- cgit v1.2.3-70-g09d2