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-nmm6 (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-nmm6 (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-nmm6 (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
Moving items
Author Message
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #1
Moving items
Hey, I'm trying to script decorater. RT targets an item and he can move that up, down, left, right etc. How can I get UID of the thing in the dialog?

I use .decorater, target a thing I want to move, so in the function decoraterer is called the dialog and <argo> is the thing, but I need the <argo> uid also in the dialog and work with that, how?

Code:
[dialog d_decorator]
0,0
resizepic 100 200 3600 265 390
page 0
button 130 240 0119B 0119B 1 0 1
button 230 240 01195 01195 1 0 2
button 130 440 01199 01199 1 0 3
button 230 440 01197 01197 1 0 4
button 280 310 01194 01194 1 0 5
button 280 370 01198 01198 1 0 6
text 130 240 0 1

[dialog d_decorator text]


[function decorater]
targetf decoraterer

[function decoraterer]
dialog d_decorator
05-30-2013 06:06 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: Moving items
you can use argo.dialog d_decorator. then <uid> under dialog will be the item, src will be player.
(This post was last modified: 05-30-2013 07:19 AM by Shaklaban.)
05-30-2013 07:19 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #3
RE: Moving items
(05-30-2013 07:19 AM)Shaklaban Wrote:  you can use argo.dialog d_decorator. then <uid> under dialog will be the item, src will be player.

Love ya. Works, ty.
05-30-2013 09:34 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #4
RE: Moving items
If somebody wants.
Code:
[dialog d_decorating]
0,0
resizepic 100 200 3600 265 390
resizepic 145 280 3600 120 170
page 0
button 130 240 0119B 0119B 1 0 1
button 230 240 01195 01195 1 0 2
button 130 440 01199 01199 1 0 3
button 230 440 01197 01197 1 0 4
button 280 310 01194 01194 1 0 5
button 280 370 01198 01198 1 0 6
button 290 430 01196 01196 1 0 7
text 120 220 100 0
text 130 500 100 1
text 130 520 100 2
text 130 540 100 3
text 230 500 100 4
text 230 520 100 5
text 230 540 100 6
tilepichue 182 <eval 300+(-(2*<height>)+50)> <dispiddec> <color>

[dialog d_decorating TEXT]
NAME: <uid.<uid>.name>(<uid>)
X: <p.x>
Y: <p.y>
Z: <p.z>
DISPID: <dispid>
COLOR: <color>
TIMER: <timer>

[dialog d_decorating BUTTON]
on=0
   return
on=1
   p=<eval <p.x>-1> <p.y> <p.z>
   dialog d_decorating
on=2
   p=<p.x> <eval <p.y>-1> <p.z>
   dialog d_decorating
on=3
   p=<p.x> <eval <p.y>+1> <p.z>
   dialog d_decorating
on=4
   p=<eval <p.x>+1> <p.y> <p.z>
   dialog d_decorating
on=5
   p=<p.x> <p.y> <eval <p.z>+1>
   dialog d_decorating
on=6
   p=<p.x> <p.y> <eval <p.z>-1>
   dialog d_decorating
on=7
   flip
   dialog d_decorating

[function decorating]
targetf f_decorating

[function uprav]
decorating

[function upravit]
decorating

[function f_decorating]
if <argo.isitem>
   argo.dialog d_decorating
else
   message Is not an item.
endif
(This post was last modified: 06-02-2013 10:39 AM by Alaric.)
06-01-2013 06:00 AM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #5
RE: Moving items
you should clean it up a bit, make an item out of it, and post it in the submissions section, should make mordaunt happy Wink

[Image: matts_siggy.gif]
06-01-2013 10:42 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)