The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Softcode bypass for last Build where packpack have a limit
Author Message
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 9 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #1
Softcode bypass for last Build where packpack have a limit
Hi,

I use the new build where we have a 550 stone backpack limit and an unlimited power for deplacing object. I want softcode a Bypass for this for doing like in the 55i version:

1- Not able to move item more than 2 times my weight limit.
I doing this on a character event:
Code:
ON=@ItemPickup_Pack / @ItemPickup_Self   /  @ItemPickup_Stack
/@ItemPickup_Ground
IF (<i.isGM>)
    return 0
ENDIF
IF (<ACT.WEIGHT> > <eval <i.MAXWEIGHT>*2>)
    i.messagerouge C'est trop lourd pour vous!
  return 1
ENDIF

It's work only if it's an item. IF it's a stack of 5000 ingots, i'm not able to deplace 1 ingot...

2- I don't want to be able to put item on my backpack if I am overweight (MAXWEIght)
That do not work because it's suppose to be a trigger on an item.... How i CAN do a Typedef for ALL item?
Code:
ON=@dropon_Self
IF (<src.isGM>)
    return 0
ENDIF

IF (<eval <src.WEIGHT>+<ARGO.WEIGHT>> > <src.MAXWEIGHT>)
    src.messagerouge C'est trop lourd pour vous!
  return 1
ENDIF

With these 2 modifications, the functionnality will be like 55i. I sincerely don't know why we put a maximum in the .ini.... The maximum should be link to your strengh...

Please Coruja would you revise your commit and set maxweight with STR? Or set an INI flag for let us decide?

Thx for your help.

https://www.uocryptonite.com/
(This post was last modified: 03-12-2020 05:58 AM by Jhobean.)
03-12-2020 05:49 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Softcode bypass for last Build where packpack have a limit - Jhobean - 03-12-2020 05:49 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)