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 - Ryu Hayabusa

Pages: [1] 2
1
NwN Building / Removing Polymorph Effect from Incoming Players
« on: January 14, 2007, 10:26:20 PM »
Quote
Yes, but it's very odd that a PC could enter polymorphed since applied effects aren't saved to character files.

Are they logging in, polymorphing then logging out and back in? In  that case the server will remember any effects on the PC.

Force resting the PC will work (I do this for my NWN2 server since +con items only add to max hit points and not current hit points). You may want to remove all effects of an entering PC however, just to be safe.

-420
[snapback]33483[/snapback]

I thought it was odd that they could do that because I couldn't replicate it myself, but apparently some of claimed to have done so.  Now I just freeze players when they come in, remove all properties, and only release them after the scan is done.

2
NwN Building / Removing Polymorph Effect from Incoming Players
« on: January 14, 2007, 04:05:51 PM »
Players are getting items through the filter by staying polymorphed when logging in.

Will using ForceRest(oPC) for the incoming player remove all polymorphed effects?

3
NwN General / Small 9AC Dueling Module Based on GS Rules
« on: January 14, 2007, 10:23:39 AM »
Ahhh... found the bug.

The filter was checking for the modified skill rank, rather than the base skill rank.  Since most WM's are wimpy, they failed the intimidate check.

Well, you wimpy WM's will fail the check no more!

4
NwN General / Small 9AC Dueling Module Based on GS Rules
« on: January 13, 2007, 09:11:59 PM »
Sorry guys.

I realise the filter isn't the greatest around.  I think I'll rewrite the class scanning section of it.

That's what I get for using other people's code for the scanner :(

Again, I apologize.

5
NwN General / Small 9AC Dueling Module Based on GS Rules
« on: January 13, 2007, 11:21:07 AM »
Anyway, after a few days of learning how to script, and with lots of help from 420, I have a small 9 AC dueling module up (on most weeknights and weekends) based on the GS rules:

Module Name: "--Ryu's 9AC Legit Dueling Released!--"
Tab: "Action"

It's really for people who aren't playing NWN2 but still looking for a place to duel.  I'm surprised that a number of former GS duelers have logged on.  Many players still miss the place I suppose.

Come visit when you guys have time!

6
NwN Building / Removing one specific visual effect from an object
« on: January 13, 2007, 11:17:11 AM »
Very clever, 420!  Thank you so much.

Quote
EDIT: Just to clarify a bit, what your code is doing is declaring a brand new effect at the beginning then checking for that newly declared effect on the target. I know it sounds weird but then the people that invented computer programming were fucked in the head.
[snapback]33451[/snapback]

So I guess when I compare effects, NWN is comparing the pointer address to the effects and not the actual effects themselves?

Anyway, after a few days of learning how to script, I have a small 9 AC dueling module up (on most weeknights and weekends) based on the GS rules:

Module Name: "--Ryu's 9AC Legit Dueling Released!--"
Tab: "Action"

I'm surprised that a number of former GS duelers have logged on.  I guess many people still miss the place.

Come visit when you guys have time!

7
NwN Building / Removing one specific visual effect from an object
« on: January 09, 2007, 04:22:06 PM »
I have this code in the module "on_activate".  It turns the user of the item into "plot" on first use, and removes "plot" on the second use.

Code: [Select]
void main()
{
    object oUsed = GetItemActivated();

    // * Script for activation of item
    if (GetTag(oUsed) == "item")
    {
        effect eVis = SupernaturalEffect(EffectVisualEffect(VFX_DUR_AURA_BLUE));
        effect eEffect;
        object oSelf = GetItemActivator();
        object oTarget = GetItemActivatedTarget();

        if (oSelf == oTarget)
        {
            if (GetPlotFlag(oSelf))
            // * Unplot user and remove specific visual effect
            {
                SetPlotFlag(oSelf, FALSE);

                eEffect = GetFirstEffect(oSelf);
                while (GetIsEffectValid(eEffect))
                {
                    if (eEffect == eVis){
                        RemoveEffect(oSelf, eEffect);
                    }
                    eEffect = GetNextEffect(oSelf);
                }
            }
            else
            // * Turn user into plot and apply visual effect
            {
                SetPlotFlag(oSelf, TRUE);
                ApplyEffectToObject(DURATION_TYPE_PERMANENT, eVis, oSelf);
            }
        }
    }
}

The script has no problem applying the visual effect, but it fails to find the visual effect when trying to remove it.  Does anyone know why?

Sorry for spamming the forum.  I'm a pure noob at scripting.

8
NwN Building / Preventing Pickpocketing
« on: January 09, 2007, 04:02:09 PM »
Quote
Code: [Select]
       ActionTakeItem(oItem, oByPC);
        ActionGiveItem(oItem, oFromPC);
Try this, replace the above two lines with this one:

AssignCommand(oByPC, (ActionGiveItem(oItem, oFromPC)));

or possibly:

AssignCommand(oFromPC, (ActionTakeItem(oItem, oByPC)));

The main problem is that you are telling the module object (which is what executes that script)  to take an item, but since the module has no inventory it can't store the item anywhere.

Not sure if that will work though, also make sure to recheck the formatting (I'm typing all this from memory).

The other thing you can try is to copy the item into the PC's inventory then DestroyObject the old item.

I did a script similar to this a long time ago, if you can't get it to work I'll try to find my old anti-pickpocket script and post it.

-420
[snapback]33433[/snapback]

Worked like a charm!  Thanks 420!

9
NwN Building / Preventing Pickpocketing
« on: January 09, 2007, 10:27:53 AM »
I have this script assigned to the module's on_acquired slot to prevent pickpocketing:

Code: [Select]
// * This script prevents pickpocketing (and kills pickpocketer)

void main()
{
    object oItem = GetModuleItemAcquired();
    object oByPC = GetModuleItemAcquiredBy();
    object oFromPC = GetModuleItemAcquiredFrom();
    object oPC;
    string sMessage;

    // * If the item is aquired by a PC and is stolen
    if (GetIsPC(oFromPC) && GetStolenFlag(oItem))
    {
        // * Remove the stolen flag and return to the owner
        SetStolenFlag(oItem, FALSE);
        ActionTakeItem(oItem, oByPC);
        ActionGiveItem(oItem, oFromPC);

        // * Give warning to pickpocketer, or if warning was given, kill player
        if (GetLocalInt(oByPC, "CAUGHT_STEALING"))
        {
            FloatingTextStringOnCreature("Pickpocket warning ignored!  Killing Player!", oByPC, FALSE);
            ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), oByPC);
            sMessage = GetName(oByPC) + " has been executed for being a moron.";
            // * SetLocalInt(oByPC, "CAUGHT_STEALING", 0);
        }
        else
        {
            FloatingTextStringOnCreature("Pickpocket is not allowed!  Warning given!", oByPC, FALSE);
            sMessage = GetName(oByPC) + " tried to steal from " + GetName(oFromPC) + "!";
            SetLocalInt(oByPC, "CAUGHT_STEALING", 1);
        }

        // * Broadcast message to all
        oPC = GetFirstPC();
        while(GetIsObjectValid(oPC)){
            SendMessageToPC(oPC, sMessage);
            oPC = GetNextPC();
        }
    }
}

While the code does kill the pickpocketing player (after a warning is given), it fails to return the item.  I don't know why...

Thanks.

10
NwN Building / Checking if PC has expansion sets
« on: January 09, 2007, 09:08:14 AM »
Quote
For what reason would you want to do this? AFAIK NWNX wouldn't havw a way to find this out.
[snapback]33428[/snapback]

I was planning a leveler, but just realised that instead of GiveLevel, I can only use SetXP, which would automatically stop players without HotU to level past 20.

Thanks for the replies!

11
NwN Building / Checking if PC has expansion sets
« on: January 08, 2007, 09:59:50 PM »
How do I check if a PC has expansion sets?

12
Script Request / Making Curse Song work when Cursed by Opponent
« on: January 01, 2007, 11:15:29 PM »
Curse Song as it is scripted right now will not allow you to curse your opponent if your opponent cursed you first.  Is there a way I can script around that without completely removing the GetHasFeatEffect and GetHasSpellEffect checks?

13
NwN Building / Ports to Open in Firewall to Allow Server Hosting
« on: January 01, 2007, 02:21:43 PM »
What are the ports I have to open in my firewall to allow for server hosting and for it to be listed in Gamespy?

14
Script Request / Disabling Saving Throw Auto-Fails
« on: January 01, 2007, 03:01:32 AM »
Quote
Greater Sanctuary is SPELL_ETHEREALNESS for some stupid reason.

-420
[snapback]33370[/snapback]

Thanks again 420!

Is there a place where I can find a listing of the modifications to spells (especially the dispels) that Godspire made?  I can't seem to find it anywhere on the site.

I liked what you guys did with the dispels and have been trying to replicate it myself.

Thanks.

15
Script Request / Disabling Saving Throw Auto-Fails
« on: December 31, 2006, 07:53:10 PM »
Quote
In the nwnplayer.ini file (in the NWN install directory), under [Server Options] put in this line:

-420

EDIT: Whoops! If you want to turn it off, set it equal to zero.
[snapback]33367[/snapback]

Thanks 420!

How about disabling Greater Sanctuary?  I managed to disable other spells, but I can't seem to find the constant for that spell....

16
Script Request / Disabling Saving Throw Auto-Fails
« on: December 31, 2006, 06:52:30 PM »
How was the auto-fail when rolling 1's in saving throws disabled in Godspire?

17
Doriath Private / Doriath Clan Roster
« on: March 24, 2006, 11:58:18 PM »
Me.

18
Doriath Private / Gone 'til I graduate
« on: March 24, 2006, 11:56:38 PM »
Graduated, got a job, busy as hell.

19
GodSpire General / Official Absence Thread
« on: August 25, 2005, 09:03:39 AM »
Off for a month or two... until I finish my Master's thesis.

20
Doriath Private / Gone 'til I graduate
« on: August 25, 2005, 01:47:59 AM »
I just uninstalled NWN... and it will stay that way until I finish my Master's degree (which is in a month or two)

If anybody is still playing by then, see ya then.

21
GodSpire General / New IP for GodSpire
« on: June 11, 2005, 09:54:25 AM »
Quote
IS this still happening?
[snapback]24201[/snapback]

I successfully logged on again at roughly 1:15 AM early this morning (June 11), but I had trouble again when I tried right now.

I have a feeling it's Gamespy.

22
Doriath Private / Builds
« on: June 10, 2005, 11:15:40 PM »
Quote
What about pally sorc WM ? ( str char of course )
The AC should be there and the ab not that bad with taunt .
And what about 10 pally 1 sorc 29 aa ? The monk AC would be given by divine shield . And ab would be higher than monk sorc aa .

Btw does 16 bard 10 rdd 14 cot work good ?
[snapback]24103[/snapback]

The Pally Sorc WM is okay... 74 ab and 90 AC.  Dexed based though.. and you get the Sorc level first to avoid spending any skill points on wisdom.  Holy Avenger on sword.

I think it's sketchy though to put HA on sword.  But that's just me.

23
GodSpire General / New IP for GodSpire
« on: June 10, 2005, 09:58:38 PM »
I see Godspire on Gamespy and the ping was 90.  When I click on "Connect" it times out while looking for the server.

Any idea why this happens?  Anything I can do about it?

24
Doriath Private / Ryu gone for late April - late May
« on: May 29, 2005, 02:10:43 AM »
Well, my vacation is coming to an end.  I'm currently at Narita airport in Tokyo awaiting my 12 hour flight back to Toronto.  Fun Fun Fun.

See ya all in GodSpire later.

25
Doriath Private / Ryu gone for late April - late May
« on: May 15, 2005, 05:13:41 AM »
Quote
Make sure you stop by Hong Kong. Did you ride the maglev train?
[snapback]23345[/snapback]

Rode the Maglev (Magnetic Levitation) train today and it was insane.  The picture below shows how fast we were going.

[attachment deleted by admin]

26
Doriath Private / Ryu gone for late April - late May
« on: May 13, 2005, 08:43:51 AM »
Quote
Make sure you stop by Hong Kong. Did you ride the maglev train?
[snapback]23345[/snapback]

Not yet.  I'll probably have a chance to ride it on the day after tomorrow.  Can't wait to give that train a shot.

27
Doriath Private / Doriath Clan Roster
« on: May 13, 2005, 08:37:41 AM »
Quote
Your last words and your spirit will remain within us, as a reminding of what means to be a Doriath member.

Thks for all Shion
[snapback]23324[/snapback]

You introduced me to the Doriath world and I am in your debt.  I'm sad to see you go.  Farewell and good luck.

28
Doriath Private / Ryu gone for late April - late May
« on: May 12, 2005, 10:25:56 AM »
Hi Guys,

Checking in from Shanghai, China....

I've been in China for 11 days now and I have to say that this place is AWESOME.  Visited the Great Wall and Forbidden Palace in Beijing, the Terra-Cotta Warriors in Xi'an, the gorgeous scenery in Guilin, and the Acrobats in Shanghai.

To note a few things:

- Girls in China are HOT, especially in Shanghai.
- Say "NEE hun PEU leung" (you are beautiful/hot) to a hot girl in Chinese.
- Many Barber shops and massage parlors in Xi'an are really brothels, especially with girls sitting near doors.  Be careful when asking to "get your hair cut" in those places.
- Chinese beer is a bit watery.
- Beer is "PEE-joe" in Chinese.

Anyway, heading to Japan and Hong Kong in a few days.  TTYL.

29
Doriath Private / Tyrael has left DE...
« on: April 28, 2005, 08:59:37 PM »
I talked to Nemo, and he's still adamant about staying in DE.  He doesn't want to feel like a deserter.  Anyway, I secured a promise from him to ask for admittance into Doriath when DE goes down.

30
Doriath Private / Tyrael has left DE...
« on: April 28, 2005, 04:52:44 PM »
When you said "someone" do you mean a Lord or HE?  Cause I can probably catch Nemo today or tomorrow.

Pages: [1] 2