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
Shrink
Author Message
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #1
Shrink
Hi, Could someone tell me how to add tag to creature that just have been opened from shrink ?

Sorry for bad english. Sad
12-12-2013 04:30 AM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #2
RE: Shrink
[TYPEDEF t_figurine]
ON=@DClick
?

But there is needed a check, that creature is really unshrinked.
12-12-2013 04:58 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #3
RE: Shrink
More2 in t_figurine is the UID of the shrinked char, so creating the tag on this UID will do it.
12-12-2013 05:02 AM
Find all posts by this user Like Post Quote this message in a reply
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #4
RE: Shrink
Wap yup with
[TYPEDEF t_figurine]
ON=@DClick


XuN could you script that part for me coz i didnt understand it right, atleast it didnt worked for me Sad
12-12-2013 06:05 AM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #5
RE: Shrink
Code:
[TYPEDEF t_figurine]
ON=@DClick
IF <UID.<MORE2>>
    UID.<MORE2>.TAG.TEST=1
ENDIF

But it also may add tag, if char double click, but can't re-shrink the pet.
12-12-2013 06:35 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #6
RE: Shrink
more2 uid is the creatures uid before shrink, after open shrinked creature its uid change's Sad
12-12-2013 10:41 PM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #7
RE: Shrink
(12-12-2013 10:41 PM)Runcuks Wrote:  more2 uid is the creatures uid before shrink, after open shrinked creature its uid change's Sad
By default - it doesn't.
12-12-2013 11:31 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #8
RE: Shrink
Oh yeah test it with .shrink, could you please share your shrink potion script becouse my is not working that way Sad
12-12-2013 11:38 PM
Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #9
RE: Shrink
Code:
[ITEMDEF i_potion_Shrink]
DEFNAME=i_potion_Shrink
ID=i_bottle_WHITE
NAME=Shrink
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_batwing 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 120.0

ON=@Create
    MORE1=s_shrink
    MORE2=100.0
    COLOR=color_gray_lt

ON=@DropON_Char
IF (<TOPOBJ> == <SRC.UID>)
  IF !(<ARGO.ISPLAYER>)
     IF (<ARGO.ISMYPET>)
       IF (<ARGO.DISTANCE> < 4)
    IF (<ARGO.TAG0.SUMMON>)
        ARGO.SPELLEFFECT s_dispel,1000
    ELSE
        ARGO.NAME=<SERV.CHARDEF.<ARGO.BASEID>.NAME>
        ARGO.SHRINK
        ARGO.SHRINKTOPACK <SRC.UID>
    ENDIF
    CONSUME 1
    TRYSRV SERV.NEWITEM i_bottle_empty
    NEW.BOUNCE
    RETURN 1
       ELSE
    SRC.MES_AWAY
       ENDIF
     ELSE
       SRC.MES_NOMYPET
     ENDIF
  ELSE
     SRC.MES_NOMYPET
  ENDIF
ENDIF

ON=@TargON_Char
IF (<TOPOBJ> == <SRC.UID>)
  IF !(<ARGO.ISPLAYER>)
     IF (<ARGO.ISMYPET>)
       IF (<ARGO.DISTANCE> < 4)
    IF (<ARGO.TAG0.SUMMON>)
        ARGO.SPELLEFFECT s_dispel,1000
    ELSE
        ARGO.NAME=<SERV.CHARDEF.<ARGO.BASEID>.NAME>
        ARGO.SHRINK
        ARGO.SHRINKTOPACK <SRC.UID>
    ENDIF
    CONSUME 1
    TRYSRV SERV.NEWITEM i_bottle_empty
    NEW.BOUNCE
    RETURN 1
       ELSE
    SRC.MES_AWAY
       ENDIF
     ELSE
       SRC.MES_NOMYPET
     ENDIF
  ELSE
     SRC.MES_NOMYPET
  ENDIF
ENDIF

ON=@TargON_Item
SRC.MES_NOMYPET
RETURN 1

on=@dclick
IF (<TOPOBJ> == <SRC.UID>)
  target="What do you want to shrink?"
  return 1
ENDIF
RETURN 1

[FUNCTION SHRINKTOPACK]
FORITEMS 0
    IF (<TYPE> == t_figurine)
    TRYSRC <ARGV[0]> BOUNCE
    ENDIF
ENDFOR
RETURN 1
(This post was last modified: 12-13-2013 12:00 AM by Wap.)
12-12-2013 11:59 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Wap's post
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #10
RE: Shrink
Thanks you very much Wap Smile
12-13-2013 06:02 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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