diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-09-21 00:29:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-09-21 00:29:51 -0300 |
commit | 9589cf3608d93e9a7384bcdc87db092fce42235c (patch) | |
tree | eeeca68d2e453d6bd5baff2bb60a70b4eff7c43b /npc | |
parent | 9f177fbd86ae325ea709cfba5c69205abe950b2b (diff) | |
download | serverdata-9589cf3608d93e9a7384bcdc87db092fce42235c.tar.gz serverdata-9589cf3608d93e9a7384bcdc87db092fce42235c.tar.bz2 serverdata-9589cf3608d93e9a7384bcdc87db092fce42235c.tar.xz serverdata-9589cf3608d93e9a7384bcdc87db092fce42235c.zip |
A Random Quest Generator is a nice idea, but it isn't used.
And if we use, I would rather use my own hack.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/questgen.txt | 38 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
2 files changed, 0 insertions, 39 deletions
diff --git a/npc/functions/questgen.txt b/npc/functions/questgen.txt deleted file mode 100644 index 285924cbd..000000000 --- a/npc/functions/questgen.txt +++ /dev/null @@ -1,38 +0,0 @@ -// Evol functions. -// Authors: -// monwarez -// Reid -// Description: -// Generate a random quest type and location. -// Variables: -// @quests : 2D array containing quest type and location availability -// with @nb_type rows and @nb_location columns. -// boolean value determine if the connection is possible between -// the quest type and location selected. -// @nb_difficulty : difficulty value from 0 to N-1. -// Argument: -// 0 : quest type -// 1 : quest location -// 2 : quest difficulty -// Return : Tridimentional array value; - -function script questgen { - - .@argc = getargcount(); - @q_type = getarg(0, rand(@nb_type * 10) / 10); - - do - { - @q_location = getarg(1, rand(@nb_location * 10) / 10); - .@cell = @q_type * @nb_location + @q_location; - - if (!@quests[.@cell] && .@argc >= 2) - { - return false; - } - } while (!@quests[.@cell]); - - @q_difficulty = getarg(2, rand(@nb_difficulty * 10) / 10); - - return true; -} diff --git a/npc/scripts.conf b/npc/scripts.conf index 5f3ce9e70..a02aa4341 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -45,7 +45,6 @@ "npc/functions/npcmovegraph.txt", "npc/functions/nurse.txt", "npc/functions/petsales.txt", -"npc/functions/questgen.txt", "npc/functions/refine.txt", "npc/functions/riddle.txt", "npc/functions/savepoint.txt", |