summaryrefslogtreecommitdiff
path: root/npc/functions/inventoryplace.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
commitcf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch)
treef9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/functions/inventoryplace.txt
parent8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff)
downloadserverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip
Override
Diffstat (limited to 'npc/functions/inventoryplace.txt')
-rw-r--r--npc/functions/inventoryplace.txt37
1 files changed, 0 insertions, 37 deletions
diff --git a/npc/functions/inventoryplace.txt b/npc/functions/inventoryplace.txt
deleted file mode 100644
index c7eff88b..00000000
--- a/npc/functions/inventoryplace.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-// Evol functions.
-// Authors:
-// Qwerty Dragon
-// Reid
-// Description:
-// Check if the player have enough place on his inventory to accept new items with arguments:
-// getarg(even numbers) item ID,
-// getarg(odd numbers) number of items,
-
-function script inventoryplace {
-
- .@argc = getargcount();
-
- if (.@argc % 2 != 0)
- {
- consolemes(CONSOLEMES_ERROR, "inventoryplace: Wrong argument count.");
- close;
- }
-
- for (.@i = .@j = 0; .@i < .@argc; .@i += 2)
- {
- setarray .@item[.@j], getarg(.@i);
- setarray .@amount[.@j], getarg(.@i + 1);
- ++.@j;
- }
-
- if (!checkweight2(.@item, .@amount))
- {
- narrator S_FIRST_BLANK_LINE,
- l("It looks like you can't carry anything else for now."),
- l("You should come back when you have some free space.");
-
- close;
- }
-
- return true;
-}