From 7568cceaafd09ffeb6ef9cfc72a8c531ac45a29b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Jun 2020 06:42:57 -0300 Subject: Remove Magic v1 learning code (was commented but anyway) --- npc/functions/util.txt | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'npc') 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 { -- cgit v1.2.3-60-g2f50