summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-29 11:28:47 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-29 11:28:47 -0300
commit85bb79da749a16761746ebb141403c7f1f750f0e (patch)
tree7585e1eb7f877fd202798484afc0e4bf45a8117b /npc
parentc7e7ed20611e63b06dfb06340127d6ac9ddc9f78 (diff)
downloadserverdata-85bb79da749a16761746ebb141403c7f1f750f0e.tar.gz
serverdata-85bb79da749a16761746ebb141403c7f1f750f0e.tar.bz2
serverdata-85bb79da749a16761746ebb141403c7f1f750f0e.tar.xz
serverdata-85bb79da749a16761746ebb141403c7f1f750f0e.zip
Fix CI issues
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/main.txt15
1 files changed, 9 insertions, 6 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 6a19e3a7..763a1c40 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -808,13 +808,16 @@ function script DelItemFromEveryPlayer {
debugmes "Deleting item %d", getarg(0);
// Del items which SQL can't reach
- .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
+ // @4200 NOT IMPLEMENTED (Moubootaur Legends customization)
+ /*
+ .@c = getunits(BL_PC, .@players, 300);
for (.@i = 0; .@i < .@c; .@i++) {
.@am=countitem(getarg(0), .@players[.@i]);
if (.@am) debugmes "DELETE %d items from ACC %d", .@am, .@players[.@i];
if (.@am)
delitem(getarg(0), .@am, .@players[.@i]);
}
+ */
return;
}
@@ -832,7 +835,7 @@ function script DelAccRegFromEveryPlayer {
detachrid();
// Del variables which SQL can't reach
- .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
+ .@c = getunits(BL_PC, .@players, 300);
for (.@i = 0; .@i < .@c; .@i++) {
attachrid(.@players[.@i]);
if (compare(getarg(0), "$"))
@@ -855,7 +858,7 @@ function script DelChrRegFromEveryPlayer {
query_sql("DELETE FROM `char_reg_str_db` WHERE `key`='"+getarg(0)+"'");
// Del variables which SQL can't reach
- .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
+ .@c = getunits(BL_PC, .@players, 300);
for (.@i = 0; .@i < .@c; .@i++) {
if (compare(getarg(0), "$"))
setd(getarg(0), "");
@@ -877,7 +880,7 @@ function script DelQuestFromEveryPlayer {
// Del quests which SQL can't reach
.@a=playerattached();
if (.@a) detachrid();
- .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
+ .@c = getunits(BL_PC, .@players, 300);
for (.@i = 0; .@i < .@c; .@i++) {
attachrid(.@players[.@i]);
setq(getarg(0), 0, 0, 0, 0);
@@ -890,7 +893,7 @@ function script DelQuestFromEveryPlayer {
// Transforms an item in something else.
// ReplaceItemFromEveryPlayer( OldID, NewID )
function script ReplaceItemFromEveryPlayer {
- if (getarg(0, -1) < 0)
+ if (getarg(1, -1) < 0)
return;
debugmes("* Server update: %d item was replaced by %d", getarg(0), getarg(1));
query_sql("UPDATE `inventory` SET `nameid`='"+getarg(1)+"' WHERE `nameid`="+getarg(0));
@@ -905,7 +908,7 @@ function script ReplaceItemFromEveryPlayer {
// Replaces a skill with another ID.
// ReplaceSkillFromEveryPlayer( OldID, NewID )
function script ReplaceSkillFromEveryPlayer {
- if (getarg(0, -1) < 0)
+ if (getarg(1, -1) < 0)
return;
debugmes("* Server update: skill %d was replaced by %d", getarg(0), getarg(1));
// If new ID already exists, it will skip