Author Topic: Tackling namespace global  (Read 3647 times)

0 Members and 1 Guest are viewing this topic.

Offline cybercasperTopic starter

  • Full Member
  • ***
  • Posts: 228
  • Activity:
    0%
  • Reputation Power: 3
  • cybercasper has no influence.
  • Respect: +41
  • Referrals: 1
    • View Profile
Tackling namespace global
« on: October 30, 2016, 09:50:52 AM »
0
Ok I have been wanting to make a master and slave script. With that being said I have read a lot about using namespace global but I don't completely understand that. It isn't set up like a normal script and thenslave account isn't either so can anyone provide some insight on that. I'm sure there are other ways to make a master / slave script but I read this is the best way and makes it seem less and less buggy

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: Tackling namespace global
« Reply #1 on: October 31, 2016, 07:09:52 AM »
0
The main thing about using a global namespace is using global variables.  Using the variables allows for all scripts to change that variable within the Namespace and also use it.  So making a master is the one that changes the variables, and the slave reads those variables.  Makes it a very effective way of different chars to talk to eachother without having to communicate through game.  The only thing is, you have to run it in the same instance of EUO. It does not communicate between EUO instances. So you can't run EUO Master on one computer and EUO Slave on another computer and have it work.
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

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: +245
  • Referrals: 0
    • View Profile
Re: Tackling namespace global
« Reply #2 on: October 31, 2016, 08:24:57 AM »
0
The only way to run it in two difference computer is to use the party option and journal.  meaning you need a robust journal scan. 

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Tackling namespace global
« Reply #3 on: October 31, 2016, 09:54:11 AM »
0
TIdus is exactly right.  For the global namespaces to work, you'll need to run all your scripts from the same EasyUO instance, with each script running in a separate tab.  You can also use system variables (*vars) to communicate between different instances of EUO on the same computer.  If you want to communicate between different computers, then you'll need a few additional things that aren't EUO related.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline cybercasperTopic starter

  • Full Member
  • ***
  • Posts: 228
  • Activity:
    0%
  • Reputation Power: 3
  • cybercasper has no influence.
  • Respect: +41
  • Referrals: 1
    • View Profile
Re: Tackling namespace global
« Reply #4 on: November 01, 2016, 10:40:24 PM »
0
Sorry for my wording that's what I mean same computer 2 different accounts

Offline cybercasperTopic starter

  • Full Member
  • ***
  • Posts: 228
  • Activity:
    0%
  • Reputation Power: 3
  • cybercasper has no influence.
  • Respect: +41
  • Referrals: 1
    • View Profile
Re: Tackling namespace global
« Reply #5 on: November 04, 2016, 08:37:48 AM »
0
so now i have a question what is the difference between uoxl swap and namespace for making a master and bot script. i know with namespace you have to make 2 seperate scripts. and with uoxl. i am trying to come up with a script to run on a master account and have 2 slaves all will be tamers for right now. so which one is a faster more effiecient way of making this script.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Tackling namespace global
« Reply #6 on: November 04, 2016, 08:53:28 AM »
0
Really that's just two possible methods to control more than one client.  In theory you could have only one script running to control all clients, but that might be a bit slow because you have to loop through all the clients.  With global namespaces, you can have one script dedicated to a client instance, but be able to send status to other instances.  uoxl swap might be easier though.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline cybercasperTopic starter

  • Full Member
  • ***
  • Posts: 228
  • Activity:
    0%
  • Reputation Power: 3
  • cybercasper has no influence.
  • Respect: +41
  • Referrals: 1
    • View Profile
Re: Tackling namespace global
« Reply #7 on: November 13, 2016, 06:26:42 PM »
0
thanks trail just like i explained to gem but i would figure that one script would have been faster than swapping to multi scripts but thats in my own theory. i might just have to try both ways. it just seems that with namespace it doesnt really seem like it is scripting in easyuo language but more in a different language. i am not that proficient with variables 

Tags: