diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-28 20:06:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-28 20:06:50 -0300 |
commit | a4c17c8c55d1f026bdff40ecfc3fefc4ba06d902 (patch) | |
tree | 04ec961c6b8c981dc9ffe672be495f5f2c2a0d6a | |
parent | c3f6e6207e5babae680cc4a98206653447e21915 (diff) | |
download | serverdata-a4c17c8c55d1f026bdff40ecfc3fefc4ba06d902.tar.gz serverdata-a4c17c8c55d1f026bdff40ecfc3fefc4ba06d902.tar.bz2 serverdata-a4c17c8c55d1f026bdff40ecfc3fefc4ba06d902.tar.xz serverdata-a4c17c8c55d1f026bdff40ecfc3fefc4ba06d902.zip |
Sponsor's Inn area
-rw-r--r-- | maps/re/012-2.mcache | bin | 113 -> 117 bytes | |||
-rw-r--r-- | maps/re/012-3.mcache | bin | 84 -> 82 bytes | |||
-rw-r--r-- | npc/012-2/_import.txt | 1 | ||||
-rw-r--r-- | npc/012-2/door.txt | 52 |
4 files changed, 53 insertions, 0 deletions
diff --git a/maps/re/012-2.mcache b/maps/re/012-2.mcache Binary files differindex 07c73b8de..9558431c7 100644 --- a/maps/re/012-2.mcache +++ b/maps/re/012-2.mcache diff --git a/maps/re/012-3.mcache b/maps/re/012-3.mcache Binary files differindex 5a6c3471a..4c8c44a90 100644 --- a/maps/re/012-3.mcache +++ b/maps/re/012-3.mcache diff --git a/npc/012-2/_import.txt b/npc/012-2/_import.txt index aa4687c90..87b91e652 100644 --- a/npc/012-2/_import.txt +++ b/npc/012-2/_import.txt @@ -1,5 +1,6 @@ // Map 012-2: Hurnscald Inn // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/012-2/_warps.txt", +"npc/012-2/door.txt", "npc/012-2/helena.txt", "npc/012-2/melina.txt", diff --git a/npc/012-2/door.txt b/npc/012-2/door.txt new file mode 100644 index 000000000..a4b6909bf --- /dev/null +++ b/npc/012-2/door.txt @@ -0,0 +1,52 @@ +// TMW-2 Script. +// Author: +// Jesusalva +// Notes: +// Sponsor Area Only + +012-2,59,38,0 script Sponsors Inn NPC_HIDDEN,0,0{ + end; + +OnTouch: + if (!getgmlevel()) + goto L_Unauthorized; + if (SP_WARN) + SP_WARN=0; + dispbottom l("FIXIT 20012: Jesusalva needs to fix stuff!"); + end; + +L_Unauthorized: + if (@sp_notrespass > 0) + goto L_Warning; + dispbottom col(l("Only Sponsors are allowed past this area."),1); + slide 59,39; + @sp_notrespass=1; + end; + +L_Warning: + if (@sp_kick > 0) + goto L_Kick; + dispbottom col(l("Only Sponsors are allowed past this area."),1); + dispbottom col(l("Do not attempt to go there again."),1); + slide 60,40; + @sp_kick=1; + end; + +L_Kick: + if (SP_WARN > 5) + goto L_Ban; + dispbottom col(l("You cannot visit the Sponsor's Inn!"),1); + slide 36,46; + // Force user to disconnect + atcommand "@kick "+strcharinfo(0); + SP_WARN=SP_WARN+1; + end; + +L_Ban: + dispbottom col(l("You cannot visit the Sponsor's Inn!"),1); + slide 36,46; + // Prevent abuse and possible vulnerabilities. + atcommand "@ban 20mn "+strcharinfo(0); + SP_WARN=0; + end; +} |