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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to do an dynamic Skillmenu?
Author Message
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #1
Lightbulb How to do an dynamic Skillmenu?
Hi Guys, its me again...

Today im trying to re-script the tracking system to show an ARROWQUEST pointing to the animal...

Everything works well on dialogs, but... i really like the skillmenu aparence of the native tracking so i've decided to re-script it all..

Ok, i've made the searching/counting on=@Select in the skill to show only the right icons on the menu:

Code:
[SKILLMENU sm_tracking]
Tracking

ON=i_pet_cow Animals
TESTIF=(<eval <src.ctag.TRACKEDANIMALS>> > 0)
SKILLMENU sm_tracking_animals

ON=i_pet_dragon Monsters
TESTIF=(<eval <src.CTAG.TRACKEDMONSTERS>> > 0)
SKILLMENU sm_tracking_monsters

ON=i_pet_man NPCs
TESTIF=(<eval <src.CTAG.TRACKEDHUMANS>> > 0)
SKILLMENU sm_tracking_npcs

ON=i_pet_woman Players
TESTIF=(<eval <src.CTAG.TRACKEDPLAYERS>> > 0)
SKILLMENU sm_tracking_players

ok, now if the player CAN find some char, the menu will appear and show only icons that have founded unleast 1 and call the respctive skillmenu.

Now, the problem: in the skillmenu we cant use dynamic functions??? i want to do something like this.

Code:
[SKILLMENU sm_tracking_animals]
Animals

FOR 0 <EVAL <src.CTAG.TRACKEDANIMALS>-1>
    ON=<UID.<CTAG.TRACKEDANIMALS.<EVAL <LOCAL._FOR>+1>>.icon> <UID.<CTAG.TRACKEDANIMALS.<EVAL <LOCAL._FOR>+1>>.name>
    f_tracking_tracker <UID.<CTAG.TRACKEDANIMALS.<EVAL <LOCAL._FOR>+1>>.uid>
ENDFOR

f_tracking_tracker is my function that show the ARROWQUEST on the player screen...

Thanks guys!

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
(This post was last modified: 06-21-2015 01:10 PM by escribano.)
06-21-2015 12:57 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
How to do an dynamic Skillmenu? - escribano - 06-21-2015 12:57 PM
RE: How to do an dynamic Skillmenu? - XuN - 07-22-2015, 06:19 PM
RE: How to do an dynamic Skillmenu? - XuN - 07-24-2015, 06:44 PM

Forum Jump:


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