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 gump and dialog
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #31
RE: Skill gump and dialog
worked perfectly ^^ THXXX!
06-27-2014 05:25 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #32
RE: Skill gump and dialog
Okey guys i have almost ended the dialog but now i need suggestions and advices for some hard stuff about it..

i have created 5 new skills so i kept the default skillgump and added a new similar one with the new skills, now i want to add the skilllock stuff ..
at first im trying to do it as similar as the default one, so i made 5 checkboxes and an OK button, so checkboxes gumpids are the very same used by default skill gump (2435 2437)
but if i want to continue with this and if am not mistaken it would be neccesary to make like ~120 dialogs considering the combination of 5 diferent checkboxes between gump_up and gump_down
to simulate when skill is skilllocked to 1 or 0 (im not considering -1 value yet).

it might look really crazy, but if im gonna keep this way on i need to be certain that it would work.

once the checkbox are pressed the button runs this:

PHP Code:
FOR 1045 1049 // checkboxes ids
    
IF (<argchk<dlocal._for>>)
//        sdialog xxxxxx
        
for 58 62                           // skill numbers
            
if (<src.skilllock.<dLOCAl._for>> == 0)     
            
src.skilllock.<dLOCAL._for> = 1
//        elif (<src.skilllock.<dLOCAL._for>> == 1)
//            src.skilllock.<dLOCAK._for> = 0
        
endif                     
        endfor
    ENDIF
   ENDFOR 

Tthe real problem is how can i match the skilllock checks to a corresponding dialog to show...

if skilllock checks return values like (For example)
0
0
1
1
1
how can i manage to make it know which dialog will be shown considering the checkboxes gump_up and gump_down

i hope i have made myself clear ... for some reason i always manage to complicate things when explaining xDDDD

Regards my friends
(This post was last modified: 06-27-2014 02:48 PM by kn4tseb.)
06-27-2014 02:28 PM
Find all posts by this user Like Post Quote this message in a reply
evening
Journeyman
*

Posts: 138
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #33
RE: Skill gump and dialog
Can send out reference reference
01-29-2015 08:28 PM
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: #34
RE: Skill gump and dialog
<src.skilllock.<dlocal._for>.lock> ?
01-29-2015 08:32 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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