Author Topic: ENs - Script Library  (Read 41953 times)

0 Members and 1 Guest are viewing this topic.

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6278
  • Activity:
    1.8%
  • Reputation Power: 72
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +655
  • Referrals: 3
    • View Profile
Re: ENs - Script Library
« Reply #15 on: February 23, 2013, 10:03:15 AM »
0
I'm an idiot.  Disregard.

The truth come out!!!!

Offline Endless NightTopic starter

  • Global Moderator
  • *
  • *****
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #16 on: October 17, 2013, 08:05:48 PM »
0
version 4
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline Endless NightTopic starter

  • Global Moderator
  • *
  • *****
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #17 on: October 26, 2013, 08:46:23 PM »
0
Version 5.

Library files changed ... Added ENs-subs-gardening.txt and changes to Ens-subs-menus.txt, ens-subs-fastframework.txt, ens-subs-standard.txt
« Last Edit: October 26, 2013, 08:58:33 PM by Endless Night »
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline declo

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +21
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #18 on: October 12, 2016, 08:58:09 AM »
0
I am attempting to learn how to call your scripts.  IF I wanted to call your ENs-Subs-BodsAndNPCs, I would do the following?

Code: [Select]
  Call #curpath , ENs-Settings.txt 
  Call %EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt ENs_sellItem

then to use

Code: [Select]
  Call %ENs-Subs-BodsAndNPCs SellItem abc123 John Talk ENK 5 6 End

I believe the parameters are as follows:

abc123 - vendorid
John - name
ENK - item to sell
5  - Quantity
6 -  minimal price
end - end resume

Is this correct?   :-\

Offline Endless NightTopic starter

  • Global Moderator
  • *
  • *****
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #19 on: October 19, 2016, 12:13:14 PM »
0
I am attempting to learn how to call your scripts.  IF I wanted to call your ENs-Subs-BodsAndNPCs, I would do the following?

Code: [Select]
  Call #curpath , ENs-Settings.txt 
  Call %EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt ENs_sellItem

then to use

Code: [Select]
  Call %ENs-Subs-BodsAndNPCs SellItem abc123 John Talk ENK 5 6 End

I believe the parameters are as follows:

abc123 - vendorid
John - name
ENK - item to sell
5  - Quantity
6 -  minimal price
end - end resume

Is this correct?   :-\


Been a long time.. so did it work ???    It should be extremely simple to get running...
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline declo

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +21
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #20 on: October 23, 2016, 01:10:02 PM »
0
I am attempting to learn how to call your scripts.  IF I wanted to call your ENs-Subs-BodsAndNPCs, I would do the following?

Code: [Select]
  Call #curpath , ENs-Settings.txt 
  Call %EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt ENs_sellItem

then to use

Code: [Select]
  Call %ENs-Subs-BodsAndNPCs SellItem abc123 John Talk ENK 5 6 End

I believe the parameters are as follows:

abc123 - vendorid
John - name
ENK - item to sell
5  - Quantity
6 -  minimal price
end - end resume

Is this correct?   :-\


Been a long time.. so did it work ???    It should be extremely simple to get running...

Did not work.  I have your files in the same diretory as Easyuo and used the following code:

Code: [Select]
set #curpath , ENs-Settings.txt
set %EN_SubScriptPath%EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt ENs_sellItem

start:
Call %ENs-Subs-BodsAndNPCs SellItem YYJVQ Neztam Talk WZF 10 1 End
halt

Any thoughts?  I tried call & set

Offline Endless NightTopic starter

  • Global Moderator
  • *
  • *****
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #21 on: February 12, 2020, 08:48:14 AM »
0
Sry for the extremely late reply, it didn't work because you didn't set pathing correctly on one attempt and called a non existent sub on other attempt.  You also seemed to be getting call and set confused.  FYI  there is no Sub 'EN_Sellitems' in the file ENs_Subs_BondsAndNPCs.txt   (the sub name is 'sellitem'). You reference Variable %ENs-Subs-BodsAndNPCs  but at no point did you create this variable instead you reassigned %EN_subScriptPath.  Below would be the actual correct code you would need.

With Pathing Assigned
Code: [Select]
call #curpath , ENs-Settings.txt 
set %ENs-Subs-BodsAndNPCs   %EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt
Call %ENs-Subs-BodsAndNPCs SellItem YYJVQ Neztam Talk WZF 10 1 End
halt

OR if you dont want to set pathing you can call it this way (setting pathing is preferable)
Code: [Select]
call #curpath , ENs-Settings.txt
call %EN_SubScriptPath , \ENs-Subs-BodsAndNPCs.txt      SellItem YYJVQ Neztam Talk WZF 10 1 End

Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline Endless NightTopic starter

  • Global Moderator
  • *
  • *****
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #22 on: February 14, 2020, 10:45:20 AM »
0
Version 6

- Location data added.
- who knows what else has changed been 7 years since last updated.


Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +556
  • Referrals: 0
    • View Profile
Re: ENs - Script Library
« Reply #23 on: February 14, 2020, 08:33:00 PM »
0
EN's looking at your ENs-Subs-Menus,     I'm trying to set up the same  settep as your ( set %ENs_Subs_Gumps %EN_SubScriptPath , \ENs-Subs-Gumps.Txt )

set %EN_SubScriptPath D:\Users\User\Documents\UO , #spc , File\Script\ENs-Endless , #spc , Night
set %ENs-Subs-Menus %EN_SubScriptPath , \ENs-Subs-Menus.txt


Now can't seen to figure how to call the sub inside the menu file ENs-Subs-Menus.tx
I'm trying to see what can do, but can't get started right :(    Can you point me int he right direction.

Offline Endless NightTopic starter

  • Global Moderator
  • *
  • *****
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #24 on: February 15, 2020, 12:14:49 PM »
0
The ghost,  My menus system is a bit more complex for sure .. See example script below to get you started....

MenuDefinition Options (wrapped in _):   ControlBar, Status, HeartBeat, Location, ToolBarsAllowed, Mainbar1, Mainbar2, Mainbar3, Action, House, XIIXSuperStuff, Info, Antiidle, ScriptBar, ScriptTools, EliteBar, MiscTools, Gardening, Resources, Health, PlayerBar, ScriptInfo, Overseer

Play around adding different menu definition options ..

Get a copy of EN-Settings.txt here <- http://www.scriptuo.com/index.php?topic=10609.msg89005#msg89005
Reason I use EN-Settings.txt to record your custom pathing is that this way you can share the script without people needing to modify your path as they will have thier own en-settings.txt with thier custom pathing.

Code: [Select]
set %EN_ScriptName   The-Ghost-Menu-Experiement
call #curpath , ENs-Settings.txt       ; Put your custom pathing information inside here.
call %EN_SubScriptPath , \ENs-Subs-Standard.txt  ENs_SetupSubNamesAndPaths     ; see this sub for all pathing vars to subs that get set
set %EN_Script_MenuDefinition _ControlBar_Status_HeartBeat_Location

call %ENs_Subs_Menus SetProgressBox %EN_ScriptName - #CharName  ; initalize menu

set !Count 1
Repeat
  call %ENs_Subs_Menus CheckProgressMenu    noghost    ; if dont add noghost option checks if you are a ghost.
  ; do something
  set !Count !Count + 1
  call %ENs_Subs_Menus GLOBALSetStatus  Status Line - My Count: !count
  wait 1
until  %DontStop = #false
Halt


Above code will give you a fully functional menu with   Pause,  Exit , EUO-Pause, EUO-Halt, Settings, ? Buttons,  Inform  you of your current location, provide a script heartbeat so you can always see the script is functioning and provide a script status line.


Its pretty powerfull stuff, let me know what you think.


« Last Edit: February 15, 2020, 12:31:16 PM by Endless Night »
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +556
  • Referrals: 0
    • View Profile
Re: ENs - Script Library
« Reply #25 on: March 02, 2020, 03:17:39 PM »
0
Good day EN's

Does your EN's - Health Bars  can be use to heal and cure  pet.    I'm trying to find a way to scan my pet health bar to see if he is poison.

Offline Endless NightTopic starter

  • Global Moderator
  • *
  • *****
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: ENs - Script Library
« Reply #26 on: March 03, 2020, 06:18:22 AM »
0
Good day EN's

Does your EN's - Health Bars  can be use to heal and cure  pet.    I'm trying to find a way to scan my pet health bar to see if he is poison.

I haven't tested it yet, but looks like this should do the job.

call %ENs_Subs_HealthBars  OpenNonHumaniodBar       ; id   x y
call %ENs_Subs_HealthBars  HealthBarReadNonPartyGump
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: