Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   PlayerWorlds Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=15)
-   -   In an effort to encourage cooperation of playerworlds... (https://forums.graalonline.com/forums/showthread.php?t=6619)

grim_squeaker_x 07-06-2001 02:52 AM

In an effort to encourage cooperation of playerworlds...
 
I present to you, something I just finished scripting for the playerworld X but I will now release publicly due to the fact that it could be useful everywhere.
It is basically a system which allows you to set your own weapons to S and even do different actions when you fire a weapon with your S button, it requires nearly no rescripting of what you've already got.
Ok, the rescripting which you'll need to do is this:
  • All disableweapons will have to be replaced with level.noweapons=1; enableweapons in turn becomes level.noweapons=0;
  • If you want to make a weapon deletable simply add:
    if (weapondestroy&&isweapon) destroy;
    to the weapon.
Now on to the extra flags (and changed) flags:
  • weaponfired, this is if the weapon is fired with either S or D
  • firedonhorse, this is if the weapon is fired with either S or D while the player is riding a horse.
  • Sweaponfired, if the weapon is fired with the S button
  • Dweaponfired, if the weapon is fired with the D button.
  • Sfiredonhorse, if the weapon is fired with the S button on a horse.
  • Dfiredonhorse, if the weapon is fired with the D button on a horse
To continue, you'll note that if you press Q you won't get the weapon menu which you'll normally get, instead you'll get something which I put together myself, you can cycle through the weapons using the left and right arrow keys, if you press A while having a weapon selected the weapon will be attempted to be deleted, if you press S or D while having a weapon selected that weapon will go to either S or D depending on what you have selected.

Feel free to download it and check it out, also feel free to make any changes to it that you'd like. I'd also appreciate if you use it on your server you could put on your website "With thanks to Lady Midnight", although you aren't required to do that.

Oh yes I haven't tested it online yet so I'm not sure if it will work without problems but I think there won't be any.

grim_squeaker_x 07-06-2001 03:28 AM

>.<
 
1 Attachment(s)
Silly me I forgot to attach the file.

RawPower 07-06-2001 03:42 AM

It looks nice and all...but what is the point of it?

grim_squeaker_x 07-06-2001 03:44 AM

Quote:

Originally posted by RawPower
It looks nice and all...but what is the point of it?
Don't know, I just felt like scripting it and you don't need to have your boring old sword under S anymore.

SSmutz 07-06-2001 03:44 AM

Quote:

Originally posted by RawPower
It looks nice and all...but what is the point of it?
So you can set any NPC to the S button I guess. Like the way bomys duck in their shells when they press S.

Komieko 07-06-2001 05:56 AM

THe only weapon it lets me fire (no matter what I choose) is the bow

Brady2 07-06-2001 06:07 AM

-Posted by Jadis

Press Q, select the weapon, Press D, Press D again to use.

Lady Midnight that looks great =)


All times are GMT +2. The time now is 09:34 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.