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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie mount's
Author Message
an0n!m0use
Journeyman
*

Posts: 56
Likes Given: 16
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #1
Information Newbie mount's
Hi everyone Bye
I really need your help Shifty

I have use this script for the newbie mounts:

PHP Code:
[FUNCTION bodyhex]
LOCAL.body=<HVAL <BODY> & 0ffff>
LOCAL.len=<EVAL STRLEN(<LOCAL.body>)>
RETURN 
0X<STRSUB 1 <dLOCAL.len> <LOCAL.body>>

[
TYPEDEF t_ethernal_mount]
On=@DClick
    LOCAL
.id=<QVAL <TDATA1>?<TDATA1>:<TAG0.ethid>>
    IF <
LOCAL.id>
        IF !((<
SRC.BODY>==c_man) || (<SRC.BODY>==c_woman) || (<SRC.BODY>==c_elf_male) || (<SRC.BODY>==c_elf_female))
            
SRC.MESSAGE @55 You can not mount a pet in your current state!
            RETURN 
1
        ELIF 
(<SRC.FINDLAYER(25).UID>)
            
SRC.SYSMESSAGE @55 You are already mounted!
            RETURN 
1
        
ELSE
            
SERV.NEWNPC=<LOCAL.id>
            NEW.
TAG.eth=<BaseID>
            NEW.
COLOR=<COLOR>
            IF (<
TAG0.ethid>)
                NEW.
TAG.etglobal=<TAG.ethid>
            ENDIF
            IF <
TAG0.conjured>
                NEW.
TAG.conjured = <TAG0.conjured>
            ENDIF
            NEW.
TAG.color=<COLOR>
            
REF1=<NEW>
            
SERV.NEWITEM=i_memory
            
NEW.COLOR=memory_ipet
            
NEW.LINK=<SRC>
            NEW.
CONT=<REF1>
            
REF1.MOUNT=<SRC>
            
SRC.EVENTS +e_ethernal_mount
            REMOVE
        
ENDIF
    ELSE
        
SERV.LOG Problems with <UID> (<NAME>) [t_ethernal_mountno TDATA1 nor TAG.ethid
        
RETURN 1
    
ENDIF
    RETURN 
1

On
=@DropOn_Ground
    
IF (<LINK> != 04fffffff) && (<LINK> == <SRC.UID>)
        
CONT=<SRC.FINDLAYER.21>
        
DispID=<SERV.CHARDEF.<TAG.ethid>.ICON>
        
UPDATE
        
RETURN 1
    
ENDIF 

This one is example of mount:
PHP Code:
[ITEMDEF i_newbie_mustang]
DEFNAME=i_newbie_mustang
NAME
=Newbie Mustang
ID
=i_pet_horse_brown_dk
TYPE
=t_ethernal_mount
TDATA1
=c_horse_brown_dk
WEIGHT
=5

On
=@Create
    ATTR
=attr_newbie 

And i have issue in the game when i save the world Sad
How to fix that ?
PHP Code:
ERROR:GC4 unplaced object deleted
ERROR
:UID=036d6id=0db 'Orn'Invalid code=3202 (Object not placed in the world)
ERROR:UID=03824id=0cc 'Horse'Invalid code=3202 (Object not placed in the world)
ERROR:UID=0383bid=0cc 'Horse'Invalid code=3202 (Object not placed in the world)
ERROR:UID=03891id=0cc 'Horse'Invalid code=3202 (Object not placed in the world
12-23-2019 08:06 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Newbie mount's
After create an item/char it must be always placed somewhere

The "SERV.NEWITEM i_memory" is getting equipped on char using "NEW.CONT=<REF1>", but "SERV.NEWNPC <LOCAL.id>" is not getting placed anywhere, so you must place it on world using something like "NEW.P=<SRC.P>"
12-23-2019 09:49 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
an0n!m0use
Journeyman
*

Posts: 56
Likes Given: 16
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #3
RE: Newbie mount's
(12-23-2019 09:49 AM)Coruja Wrote:  After create an item/char it must be always placed somewhere

The "SERV.NEWITEM i_memory" is getting equipped on char using "NEW.CONT=<REF1>", but "SERV.NEWNPC <LOCAL.id>" is not getting placed anywhere, so you must place it on world using something like "NEW.P=<SRC.P>"
Cheers, bud Wink
12-24-2019 03:49 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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