RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Gambler NPC

change

Any chance someone can change this script so you can just single click to play the games. I find if you say play you get 20 windows popping up from all the gamblers in my casino it sucks. I have no clue how to change it myself so any help would be appreciated.
 

Dubie

Wanderer
I just changed the range in there to 2 and it works fine.
You can use 1 so they have to be right next to that one to play.
But if you use a table in front of them it would have to be 2.
Table uses one tile.

*EDIT*
lol I can not seem to get them to turn around.
They all face north.
Is there a command that I missed somewhere that would allow to me change them after spawned or in the script to face a different direction?
 
Nope

Even 2 won't work they are in a building and I have then at tables but I still get multi gumps if im standing in certain spots. I don't understand why he did not let you use 1 click in the first place most people don't even know to say play I have to have an instruction book. Someone please change this so you can single click to play.
 

gibreaper

Sorceror
I get this after copying the .uop to my UO folder

and renaming to verdata.mul - my shard is an AOS shard. I cannot see the cards and thought this thread would fix it.

error ->

Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (1614 items, 442 mobiles)
World: Loading...An error was encountered while loading a saved object
- Type: Server.Multis.Keep
- Serial: 0x4000CA22
Delete the object? (y/n)
n
After pressing return an exception will be thrown and the server will terminate

Error:
System.Exception: Load failed (items=True, mobiles=False, guilds=False, regions=False, type=Server.Multis.Keep, ser
ial=0x4000CA22) ---> System.TypeInitializationException: The type initializer for "Server.MultiData" threw an excep
tion. ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt32()
at Server.MultiData..cctor()
--- End of inner exception stack trace ---
at Server.MultiData.GetComponents(Int32 multiID)
at Server.Items.BaseMulti.get_Components()
at Server.Map.OnEnter(Item item)
at Server.Item.Deserialize(GenericReader reader)
at Server.Items.BaseMulti.Deserialize(GenericReader reader)
at Server.Multis.BaseHouse.Deserialize(GenericReader reader)
at Server.Multis.Keep.Deserialize(GenericReader reader)
at Server.World.Load()
--- End of inner exception stack trace ---
at Server.World.Load()
at Server.ScriptCompiler.Compile(Boolean debug)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit

After I delete the verdata.mul, everything is fine. Any suggestions?
 

HellRazor

Knight
.UOP is a file format used by some utilities to insert items into verdata.mul. You can't just rename it.

I believe there are some utilities over at http://www.uogateway.com that will let you read the contents of a .uop file and save it to verdata.mul.
 

Skrecok

Wanderer
Hi! I love the gambler! I can't get the cards to work though.

I downloaded the patch, put it in my UO folder, applied the patch, started my server...everything seems OK, but when I say "play" to the gambler the gump comes up with nothing in it. What am I doing wrong? :(

Also, I do think being able to doubleclick (or singleclick, or click in some form) would be better than having to speak a magic word to get him to play...otherwise I'll have to put up a sign. Maybe put something in the NPC's profile with playing instructions? I don't know. Saying "play" just isn't that intuitive.

P.S. I'm running UO:R shard. I have a verdata.mul.
 

HellRazor

Knight
The newest version of the UO client stopped using verdata.mul to patch art items. If you patched to the newest version that's why you don't see any of the stuff in verdata.mul, client won't read it any more.
 

Zulu

Wanderer
Hello

By the time I get to the message and try to respond one of the helpful members has already answered the question. What are you wondering about?
 

Zulu

Wanderer
About the cards, I applied extra graphics to the .mul files Each time there is a new update that would have to be done again.

You have to use the updated graphics mul file and not the verdata. verdata will work on the older clients.

When you patch, OSI might be using the same graphic slots as I picked.
 

Zulu

Wanderer
To see the cards, you have to make sure the following line is set to false. If it set to true, then the program will try to display the new cards.

private const bool NewCards = false;
 

Zulu

Wanderer
On another note, anyone who uses the scripts can put their own copyright where I put zuluhotel. I have no problems if anyone wants to put their shardname in the scirpt and even include your own copyright.

Hellrazor, thanks for answering questions about the script.;)
 
Top