summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-02 18:55:08 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-02 18:55:08 -0300
commit2987afb977b5d759e68a4ed9be59aaee629dd6ce (patch)
treeb616cbf1a447d6ef0d89bc29f9c22628d12c0a11
parent03d76f8e88dd763a22c3f15c7ff49bb12d5ad966 (diff)
downloadserverdata-2987afb977b5d759e68a4ed9be59aaee629dd6ce.tar.gz
serverdata-2987afb977b5d759e68a4ed9be59aaee629dd6ce.tar.bz2
serverdata-2987afb977b5d759e68a4ed9be59aaee629dd6ce.tar.xz
serverdata-2987afb977b5d759e68a4ed9be59aaee629dd6ce.zip
Fix some minor buggies...
-rw-r--r--db/re/item_db.conf4
-rw-r--r--npc/functions/clientversion.txt9
2 files changed, 6 insertions, 7 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index 1a65feff9..7e55c5315 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -2230,8 +2230,8 @@ item_db: (
getitem any(ScorpionStinger, BugLeg, MaggotSlime), rand(1,3);
getitem any(ScorpionStinger, BugLeg, MaggotSlime), rand(1,3);
Zeny=Zeny+50;
- getitem any(Beer, CottonCloth), rand(1,2);
- getitem any(PiouLegs, Piberries, Cheese), rand(1,2);
+ getitem any(Beer, CottonCloth), 1;
+ getitem any(PiouLegs, Piberries, Cheese), rand(2,3);
dispbottom l("Letter from @@:", strcharinfo(0,"GM Team",#REFERRAL_PROG));
dispbottom l("Dear @@, I send you this gift in hopes you do well in TMW2.", strcharinfo(0));
">
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 058796e6e..fe7b35198 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -12,7 +12,7 @@ function script checkclientversion {
if (isin("000-0", 0, 0, 40, 40)) {
UPDATE=gettimetick(2);
// if $EVENT$ is REFFER:
- if (#REFERRAL_PROG == "") {
+ if (#REFERRAL_PROG == 0) {
mesn l("TMW2 Staff");
mesc l("Hello, and welcome to TMW2: Moubootaur Legends!"), 3;
mesc l("(Click next button to advance dialogs)"),9;
@@ -20,12 +20,12 @@ function script checkclientversion {
mesn l("TMW2 Staff");
mesc l("Did you came here by someone advise? If yes, write their name here!"), 3;
mesc l("If this is not the case, just click on \"Send\"."), 3;
- .@ref$="nah";
+ .@ref$="";
do
{
input .@ref$;
mes "";
- if (.@ref$) {
+ if (.@ref$ != "") {
.@ref=getcharid(0, strip(.@ref$));
if (.@ref > 0) {
#REFERRAL_PROG=.@ref;
@@ -42,13 +42,12 @@ function script checkclientversion {
.@ref$="";
}
} else {
- .@ref$="nah";
mesn l("TMW2 Staff");
mesc l("I see. Well, welcome to the game! If you have any doubt, shout on #world for help!"), 3;
next;
}
if (ClientVersion >= 24) return;
- } while (.@ref$ != "");
+ } while (.@ref$ == "");
}
}