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
[skill ball]
Author Message
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #6
RE: [skill ball]
Code:
[itemdef i_skill_ball]
id=023d
Name=Skill Ball
type=t_normal

ON=@CREATE
    color = 0800

ON=@DCLICK
    IF (<CONT> != <SRC.FINDLAYER.layer_pack.UID>)
        src.sysmessageua 0800,0,0,enu The <name> must be in your backpack.
        RETURN 1
    ENDIF
    TRY SRC.DIALOGCLOSE d_Skill_ball
    sdialog d_Skill_ball
RETURN 1

[dialog d_Skill_ball]
50,50
nodispose
noclose
page 0
resizepic 50 50 9200 558 475//grey
resizepic 55 55 9200 545 25//grey
button 568 495 4017 4018 1 1 0
dcroppedtext 230 58 1000 200 0800 Choose ONE skill to improve to 100.0

local.offx=56
local.offy=90
for 1 58
    gumppictiled <dlocal.offx> (<dlocal.offy>+1) 170 20 3004
    dcroppedtext (<dlocal.offx>+4) (<dlocal.offy>+2) 1000 200 0800 <serv.skill.<eval <local._for>-1>.key>
    button (<dlocal.offx>+144) <dlocal.offy> 4023 4025 1 0 <dlocal._for>
    if (<dlocal._for> == 20)
        local.offx = 240
        local.offy = 90
    elif (<dlocal._for> == 39)
        local.offx = 424
        local.offy = 90
    else
        local.offy += 21
    endif
endfor

[DIALOG d_Skill_ball BUTTON]
on=0
RETURN 1

ON=1 58
    src.<serv.skill.<eval <argn1>-1>.key> = 100.0
    src.sysmessageua 0800,0,0,enu The magic of the <name> raises your wisdom.
    remove
(This post was last modified: 05-15-2014 01:53 AM by Shidhun.)
05-15-2014 01:47 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
[skill ball] - amonvangrell - 05-12-2014, 12:51 PM
RE: [skill ball] - Mordaunt - 05-13-2014, 04:31 AM
RE: [skill ball] - amonvangrell - 05-13-2014, 07:18 AM
RE: [skill ball] - Mordaunt - 05-13-2014, 05:20 PM
RE: [skill ball] - amonvangrell - 05-14-2014, 06:01 AM
RE: [skill ball] - Shidhun - 05-15-2014 01:47 AM
RE: [skill ball] - Alaric - 05-15-2014, 02:21 AM
RE: [skill ball] - amonvangrell - 05-15-2014, 08:33 AM

Forum Jump:


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