diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-25 06:42:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-25 06:42:57 -0300 |
commit | 7568cceaafd09ffeb6ef9cfc72a8c531ac45a29b (patch) | |
tree | e135d590d4ef67bbbe322c044fe075030a6862f3 /npc/functions | |
parent | 9f1c5dd12cae810fcd8d150b88959db355bbac45 (diff) | |
download | serverdata-7568cceaafd09ffeb6ef9cfc72a8c531ac45a29b.tar.gz serverdata-7568cceaafd09ffeb6ef9cfc72a8c531ac45a29b.tar.bz2 serverdata-7568cceaafd09ffeb6ef9cfc72a8c531ac45a29b.tar.xz serverdata-7568cceaafd09ffeb6ef9cfc72a8c531ac45a29b.zip |
Remove Magic v1 learning code (was commented but anyway)
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/util.txt | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 05c649b18..8c3e449a5 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -795,46 +795,6 @@ function script learn_magic { return mlearn(.@ski, .@mlv, .@msp, .@it, .@am); } -/* -// Magic School Learning Interface -// mlearn( skill, {item 1, amount 1}, {item 2, amount 2}... ) -// returns false if cheater -function script mlearn { - if (getargcount() < 2 || getargcount() % 2 != 1) - return Exception("Faulty learning skill command invoked - error"); - - .@sk=getarg(0); - - // List required ingredients - mesq l("This useful skill will only require:"); - for (.@i=1;.@i < getargcount(); .@i++) { - mesc l("@@/@@ @@", countitem(getarg(.@i)), (getskilllv(.@sk)+1)*getarg(.@i+1), getitemlink(getarg(.@i))); - .@i++; - } - // getarg(.@i) - next; - if (askyesno() == ASK_NO) - return true; - - // Count items - for (.@i=1;.@i < getargcount(); .@i++) { - if (countitem(getarg(.@i)) < (getskilllv(.@sk)+1)*getarg(.@i+1)) - return false; - .@i++; - } - - // Delete Items - for (.@i=1;.@i < getargcount(); .@i++) { - delitem getarg(.@i), (getskilllv(.@sk)+1)*getarg(.@i+1); - .@i++; - } - - sk_lvup(.@sk); - next; - - return true; -} -*/ // transcheck( {item 1, amount 1}, {item 2, amount 2}... ) // returns true upon success function script transcheck { |