[2.3] Repairing Mudwall Walls.

Join Discord

ChronicleGM

Dedicated Member
Dedicated Member
Oct 24, 2004
232
1
65
Can anyone help me out?

Ive had a problem with the admin npc that repairs the Mudwall (MONGCHON not SABUK) Walls/Palace walls.

Script below:

Code:
; ===================================
; Npc Def NPC File : Administrator-0150
; SabukWall Administrator
; -----------------------------------
; Name: Administrator
; Job: 
; Map No: 0150
; Pos X 
; Pos Y 
; File name: *removed*
; Comment: SabukWall Administrator
;================================================= =
;
[@main]
#SAY
Sabuk Is owned by <$OWNERGUILD> and controlled by <$LORD>.\
The total gold of the castle is: <$CASTLEGOLD>.\
Todays income is: <$TODAYINCOME>\ \
 <WithDraw Cash/@@withdrawal>\
 <Store Cash/@@receipts>\
 <Control Main Gate/@treatdoor>\
 <Repair Castle gate and walls/@repaircastle>\
 <Hire Archers/@hirearchers>\

;--------------------------------------------------
;Door control
[@treatdoor]
The Castle Door is currently <$CASTLEDOORSTATE>\ \
 <Close the main gate/@closemaindoor>\
 <Open the main gate/@openmaindoor>\
 <Back/@main>\
[@openmaindoor]
The main gate is now open.\ \
 <Back/@treatdoor>\
[@closemaindoor]
The main gate is now closed.\ \
 <Back/@treatdoor>\

;--------------------------------------------------
;Repair walls and doors
[@repaircastle]
What do you want to repair?\ \
 <Repair the main door./@repairdoor>\
 <Repair castle walls./@repairwalls>\
 <Back/@main>\
[@repairdoor]
It will cost <$REPAIRDOORGOLD> to repair the Door!\ \
 <Repair Door Now/@repairdoornow>\
 <Back/@repaircastle>\
[@repairwalls]
It will cost <$REPAIRWALLGOLD> to repair the Wall.\ \
 <Repair Wall./@repairwallnow1>\
 <Repair Wall./@repairwallnow2>\
 <Repair Wall./@repairwallnow3>\
 <Back/@repaircastle>\

;--------------------------------------------------
;Guard cammand
[@guardcmd]
Do you want ot hire Archers?.\ \
<Hire more Archers./@hirearchers>\
<Command order?./@commandorder>\
 <Back/@main>\

[@hirearchers]
Do you want to hire some Arch's?\
They dont Come free, they will cost \
<$ARCHERFEE> each.\ \
 Hire  <Archer1/@hirearchernow1>, <Archer2/@hirearchernow2>, <Archer3/@hirearchernow3>\
 Hire <Archer4/@hirearchernow4>, <Archer5/@hirearchernow5>, <Archer6/@hirearchernow6>\
 Hire  <Archer7/@hirearchernow7>, <Archer8/@hirearchernow8>\
 Hire <Archer9/@hirearchernow9>, <Archer10/@hirearchernow10>\
 Hire <Archer11/@hirearchernow11>, <Archer12/@hirearchernow12>\
 <Back/@main>\
[@commandorder]
Guards are currently set to <$GUARDRULE>.\
Do you want to Change it?\ \
 <Guards normal operation/@guardrule_normalnow>\
 <Guards attack pk's on site/@guardrule_pkattack>\
 <Back/@guardcmd>\

It doesnt repair the walls or dispatch archers, it displays as below:


Uploaded with ImageShack.us

Also anyone from any guild can use it. Im unsure what the coding part for that would be, is it;

#IF
CHECKGUILDADMIN

Thanks.
Code.
 
Last edited:

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,321
2
2,709
515
United Kingdom
Ive had a problem with the admin npc that repairs the Mudwall (MONGCHON not SABUK) Walls/Palace walls.

Huh? That is Sabuk.

Anyways, post your Castle/0/SabukW.txt here

---------- Post added at 09:23 PM ---------- Previous post was at 09:23 PM ----------

Ive had a problem with the admin npc that repairs the Mudwall (MONGCHON not SABUK) Walls/Palace walls.

Huh? That is Sabuk.

Anyways, post your Castle/0/SabukW.txt here
 
Upvote 0

ChronicleGM

Dedicated Member
Dedicated Member
Oct 24, 2004
232
1
65
There is caste gi and then mongchon, they are 2 different ones arent they?

Code:
[Setup]
CastleName=Sabuk
ChangeDate=20.09.2011 01:37:22
WarDate=20.09.2011 01:37:22
IncomeToday=30.09.2011 00:00:09
OwnGuild=Arcane~Order
TotalGold=11036
TodayIncome=11036

[Defense]
CastleMapList=0151,0152,0153,0154,0155,0156,
CastleMap=3
CastleHomeMap=3
CastleHomeX=644
CastleHomeY=290
CastleWarRangeX=100
CastleWarRangeY=100
CastlePlaceMap=0150
CastleSecretMap=D701
CastlePalaceDoorX=631
CastlePalaceDoorY=274

MainDoorX=672
MainDoorY=330
MainDoorName=MainDoor
MainDoorOpen=1
MainDoorHP=0
LeftWallX=624
LeftWallY=278
LeftWallName=LeftWall
LeftWallHP=0
CenterWallX=627
CenterWallY=278
CenterWallName=CenterWall
CenterWallHP=0
RightWallX=634
RightWallY=271
RightWallName=RightWall
RightWallHP=0

Archer_1_Name=Archer
Archer_1_HP=0
Archer_2_Name=Archer
Archer_2_HP=0
Archer_3_Name=Archer
Archer_3_HP=0
Archer_4_Name=Archer
Archer_4_HP=0
Archer_5_Name=Archer
Archer_5_HP=0
Archer_6_Name=Archer
Archer_6_HP=0
Archer_7_Name=Archer
Archer_7_HP=0
Archer_8_Name=Archer
Archer_8_HP=0
Archer_9_Name=Archer
Archer_9_HP=0
Archer_10_Name=Archer
Archer_10_HP=0
Archer_11_Name=Archer
Archer_11_HP=0
Archer_12_Name=Archer
Archer_12_HP=0
Guard_1_Name=Guard
Guard_1_HP=0
Guard_2_Name=Guard
Guard_2_HP=0
Guard_3_Name=Guard
Guard_3_HP=0
Guard_4_Name=Guard
Guard_4_HP=0


---------- Post added at 09:29 PM ---------- Previous post was at 09:27 PM ----------

Also this is the M2 Settings;



Uploaded with ImageShack.us

EDIT: It does seem to be set to Sabuk in many places. Is this wrong ?
 
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,321
2
2,709
515
United Kingdom
I see the problems...use this instead, but change the [Setup] part to match yours so the guild, gold etc is correct

Code:
[Setup]
CastleName=Sabuk
ChangeDate=7/28/2009 8:47:50 PM
WarDate=7/28/2009 8:00:00 PM
IncomeToday=2/26/2010 12:00:05 AM
OwnGuild=Revival
TotalGold=1150796
TodayIncome=500

[Defense]
CastleMapList=0151,0152,0153,0154,0155,0156,
CastleMap=3
CastleHomeMap=3
CastleHomeX=644
CastleHomeY=290
CastleWarRangeX=100
CastleWarRangeY=100
CastlePlaceMap=0150
CastleSecretMap=D701
CastlePalaceDoorX=631
CastlePalaceDoorY=274

MainDoorX=672
MainDoorY=330
MainDoorName=MainDoor
MainDoorOpen=1
MainDoorHP=0
LeftWallX=624
LeftWallY=278
LeftWallName=LeftWall
LeftWallHP=5000
CenterWallX=627
CenterWallY=278
CenterWallName=CenterWall
CenterWallHP=5000
RightWallX=634
RightWallY=271
RightWallName=RightWall
RightWallHP=5000

Archer_1_X=662
Archer_1_Y=333
Archer_1_HP=2000

Archer_2_X=664
Archer_2_Y=331
Archer_2_HP=2000

Archer_3_X=666
Archer_3_Y=329
Archer_3_HP=2000

Archer_4_X=676
Archer_4_Y=319
Archer_4_HP=2000

Archer_5_X=678
Archer_5_Y=317
Archer_5_HP=2000

Archer_6_X=681
Archer_6_Y=314
Archer_6_HP=2000

Archer_7_X=671
Archer_7_Y=334
Archer_7_HP=2000

Archer_8_X=675
Archer_8_Y=329
Archer_8_HP=2000

Archer_9_X=630
Archer_9_Y=283
Archer_9_HP=2000

Archer_10_X=637
Archer_10_Y=276
Archer_10_HP=2000

Archer_11_X=627
Archer_11_Y=271
Archer_11_HP=2000

Archer_12_X=632
Archer_12_Y=266
Archer_12_HP=2000
Guard_1_Name=Guard
Guard_1_HP=0
Guard_2_Name=Guard
Guard_2_HP=0
Guard_3_Name=Guard
Guard_3_HP=0
Guard_4_Name=Guard
Guard_4_HP=0
Archer_1_Name=Archer
Archer_2_Name=Archer
Archer_3_Name=Archer
Archer_4_Name=Archer
Archer_5_Name=Archer
Archer_6_Name=Archer
Archer_7_Name=Archer
Archer_8_Name=Archer
Archer_9_Name=Archer
Archer_10_Name=Archer
Archer_11_Name=Archer
Archer_12_Name=Archer

I honestly don't know what you're talking about with castle gi though lol, that is not an ownable castle, only Sabuk is by default. Sabuk is in Mongchon province
 
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,321
2
2,709
515
United Kingdom
It's an incomplete file which comes with the basic server files, I remember sw didn't work for me either but that's from my server so I know it works, just noticed this though:

MainDoorHP=0

not sure why it's set to 0, you might wanna change that.
 
Upvote 0

ChronicleGM

Dedicated Member
Dedicated Member
Oct 24, 2004
232
1
65
Nope it still doesnt work, are we supposed to get the red writing in the dialog boxes below? :



Uploaded with ImageShack.us



Uploaded with ImageShack.us




We cant store/withdraw cash, open/close the main gate or repair/hire archers, none of the functions work.
 
Last edited:
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,201
61
155
uk
Make sure in there in the npc table using race 2 for admin, script need to be in the npc folder.
 
Last edited:
Upvote 0