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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ON=@ItemDropOn_Ground
Author Message
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #2
RE: ON=@ItemDropOn_Ground
That happens because sending CONT does not update the container of the item unless the container is opened. There are little work arounds for it, such as sending the item under ground prior to changing it's CONT. Example:
Code:
on=@itemdropon_ground
if (<act.baseid>==i_book_vip) || (<act.baseid>==i_robe_vip)
  src.sysmessageua 07a1,0,0,0 <act.name> nao pode ser jogado no chao.
  if (<src.weight> > <src.maxweight>)
    act.z=<eval <serv.map(<act.p.x>,<act.p.y>,<act.z>,<act.map>).terrain.z> +-20> //send underneath the floor to hide the object
    act.cont=<src.findlayer.29>
    src.sysmessageua 07a1,0,0,0 <act.name> foi para seu bank pq vc estar muito pesado.
  else
    act.z=<eval <serv.map(<act.p.x>,<act.p.y>,<act.z>,<act.map>).terrain.z> +-20> //send underneath the floor to hide the object
    act.cont=<src.findlayer.21>
  endif
  return 1
endif

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
06-16-2015 09:42 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
ON=@ItemDropOn_Ground - ForesteR - 06-13-2015, 05:11 AM
RE: ON=@ItemDropOn_Ground - Skul - 06-16-2015 09:42 AM
RE: ON=@ItemDropOn_Ground - ForesteR - 06-16-2015, 10:04 AM
RE: ON=@ItemDropOn_Ground - ForesteR - 06-17-2015, 09:54 AM

Forum Jump:


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