Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Octavian

Pages: [1]
1
Stealth Client / Re: [c# scriptsdk 0.9.7] how do you use edit in gumps?
« on: January 05, 2017, 03:55:47 AM »
Sorry I didn't stumble up on this topic before.
I fixed a bug which sounds similar to yours. On my end I'm now able to submit a textedit successfull.

Chrome already merged my fix into the official ScriptSDK so all you need is to re-pull (or re-clone) it.
I hope this also fixed your problem.

2
Stealth Client / Re: ContextMenu activate entry in open ContextMenu
« on: October 02, 2015, 02:57:39 PM »
But if I read your code right you open a new ContextMenu in "OnUse":
Code: [Select]
Stealth.Client.ClearContextMenu();
Stealth.Client.SetContextMenuHook(lu.Value, (byte) e.Entry.Tag);
Stealth.Client.RequestContextMenu(lu.Value);

This code closes the existing ContextMenu and opens a new one with a hook activated.
My problem is that the entry I want to activate is on a different position (if it is there at all) when I reopen the context menu.

3
Stealth Client / ContextMenu activate entry in open ContextMenu
« on: October 01, 2015, 04:50:26 AM »
Hi there,

My Problem:
Is there a way to activate a specific entry in an already open ContextMenu?

Why do I ask:
I have a problem regarding the context menu.
On my server we have a few skill trainer that can train your skill to high levels.
However the problem is that the index of the "Train <Skill>" entry is on a different position every time I open the ContextMenu.

My demo-Code:
Code: [Select]
# SKILL is the context-entry that shall be activated to train the skill.
SKILL = 'Train Archery'

def getSellContextMenu(vendorId):
    ClearContextMenu()
    while GetContextMenu() == []:
        RequestContextMenu(vendorId)
        sleep(0.5)
    contexts = GetContextMenu()
    contNr = -1
    # context is one line from the context menu.
    for context in contexts:
        if SKILL in context:
         # Get the position of the found context entry.
            contEntry = context.split('|', 1)[0]
            # print 'ContextEntry: %s, number: %s' % (context, contEntry)
            contNr = int(contEntry)
    if contNr == -1:
     # Skill was not found in the context menu.
        return False
    # Activate the found context-entry.
    SetContextMenuHook(vendorId, contNr)
The problem of my demo code:
SetContextMenuHook seems to open a new ContextMenu thus activating the wrong entry.

4
New member introductions / Octavians Introduction
« on: August 02, 2015, 06:11:08 AM »
It was the year 2005 after the birth of the old gods son. A year like every other for most of them. But this year was special for him, as he saw the light of the day. He logged into Vetus-Mundus, a german free-shard.
He had no Idea what awaited him. He was so naive but that wasn't uncommon because his player wasn't that old himself. The player didn't even have legal age at that time.

He started as a mage, a mage that would only bring good to the people. Never hunt anybody down. Always fight the evil monsters.
He was accompanied by an old member of this world to guide his first steps. Never would he have anticipated that one day he would exceed his old mentor.
He had trained hard and got company by other characters his player would create.

But it was no sooner than the creation of the CraftMan that his player would know and use a mighty spell to automate things. He had used some Razors before. But the introduction of the spell "EasyUO" had required months after months. But as soon as this spell was there he studied it day after day.
He first altered the spells other provided. But soon he would create his own mighty spells. Some of the GodMentors [GM] where not as happy as he was but they soon found rules which allowed him to alter his spells in a safe environment.

The player however loved to write those spells. He had written other spells to run on PropiteryClaims [PC] they must have had something to do with churches because he always told some tales about Windows. This soon stopped however as he must have switched to an ice-biome. The penguin was soon his new hobby. It combinded well with UO however because penguines loved alcohol and drank many wine bottles.

Not late after that the existence of Iris2 was made public. It was his first attempt to cast LUA spells. This new view angle into the world of UO and the informations about mechanics he had never even anticipated made him one of the best spell casters on all Vetus-Mundus.
He was so well known that he even cooperated with the casters of Iris2.

However everything came to an abrupt end because the player couldn't cast spells in the far away land "RL" as good as he could cast his lua and easyuo spells.
So he decided to stop from one day to the other and concentrate up on the Archivement to reach this far land.


More than 5 Years have passed by, the player is now spellcaster with official approval of the RL-Staff. But his old lands never lost their grip on him.

So now, after 5 years he has come back to rule them all.
He is looking forward to know the ScriptUO community.


Pages: [1]