diff --git a/docs/jsdocs.html b/docs/jsdocs.html index cde5f824a..b3647694d 100644 --- a/docs/jsdocs.html +++ b/docs/jsdocs.html @@ -1692,10 +1692,10 @@
Example of usage
-
- function onDrop( iDropped, pDropper )
- {
+
+ Example of usage
+
function onDrop( iDropped, pDropper )
+{
var pSock = pDropper.socket;
// Client version 6.0.1.7+ has an additional byte before serial of target container
@@ -1709,30 +1709,27 @@ January 9th, 2022
if( targSer1 == 0 ) // Target is a character
{
- var targetChar = CalcCharFromSer( targSer1, targSer2, targSer3, targSer4 )
- if( ValidateObject( targetChar ))
- {
- pDropper.TextMessage( "I've dropped this item on a character, deny if not my own character!!" );
- if( targetChar.serial != pDropper.serial )
- {
- pDropper.TextMessage( "DENIED!" );
- return false;
- }
- }
+ var targetChar = CalcCharFromSer( targSer1, targSer2, targSer3, targSer4 )
+ if( ValidateObject( targetChar ))
+ {
+ pDropper.TextMessage( "I've dropped this item on a character, deny if not my own character!!" );
+ if( targetChar.serial != pDropper.serial )
+ {
+ pDropper.TextMessage( "DENIED!" );
+ return false;
+ }
+ }
}
else if( targSer1 == 0xFF ) // Target is ground or another non-container item
{
- pDropper.TextMessage( "I've dropped this item on the ground or on another item, let's approve!" );
- }
- // Default to allow dropping, let code handle it!
- return true;
- }
+ pDropper.TextMessage( "I've dropped this item on the ground or on another item, let's approve!" );
}
// Default to allow dropping, let code handle it!
return true;
- }
-
+}
+
+