Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-02-2007, 09:42 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Eliminating the Sword

How do I get rid of the default sword? I got setSword( NULL, 0); and replaceAni( "sword", NULL); Which get rid of the physical part of the sword. But a player can still walk up to a bush push S, and with the player ani staying idle, the bush is miraculously being cut. I.E. the bush is vanishing and the leaps are showing but the player does nothing.
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 12-02-2007, 10:24 PM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Custom attack system.
Reply With Quote
  #3  
Old 12-02-2007, 11:03 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
I have that, It is just not removing the sword effect.
__________________
Deep into the Darkness peering...
Reply With Quote
  #4  
Old 12-02-2007, 11:36 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
disableWeapons();
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #5  
Old 12-02-2007, 11:59 PM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
enablefeatures() is actually the best way to do it.
__________________
Stan.
Reply With Quote
  #6  
Old 12-03-2007, 12:42 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
thanks guys
__________________
Deep into the Darkness peering...
Reply With Quote
  #7  
Old 12-03-2007, 02:26 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
You can disable the sword through enablefeatures?
__________________
Reply With Quote
  #8  
Old 12-03-2007, 04:26 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by cbkbud View Post
You can disable the sword through enablefeatures?
Actually...no.
Reply With Quote
  #9  
Old 12-03-2007, 04:37 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by Kyranki View Post
enablefeatures() is actually the best way to do it.
...no o_o
You have to use disableWeapons(); o.0 There is not feature in enablefeatures for sword usage...
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #10  
Old 12-03-2007, 11:01 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
yeah I used disableweps
__________________
Deep into the Darkness peering...
Reply With Quote
  #11  
Old 12-03-2007, 11:47 PM
Luigi203 Luigi203 is offline
Hamma Time
Luigi203's Avatar
Join Date: Mar 2003
Location: North East PA
Posts: 285
Luigi203 is on a distinguished road
Send a message via AIM to Luigi203
disablesword()?
__________________


CAUTION
Reply With Quote
  #12  
Old 12-03-2007, 11:55 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Luigi203 View Post
disablesword()?
Doesnt exist.
Reply With Quote
  #13  
Old 12-03-2007, 11:56 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Luigi203 View Post
disablesword()?
I could've sworn that disablesword was a command, but it doesn't appear in the list of commands on the wiki. It either didn't make it to documentation, is an old (now unsupported) command, or was never a command to begin with.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #14  
Old 12-04-2007, 02:08 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
You might be thinking of hidesword(int), used to be used on old Graal to hide the sword in case you used the sword sprite indexes and didn't want the sword to be shown.
Reply With Quote
  #15  
Old 12-04-2007, 02:43 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Actually, Vash. enablefeatures(params); disables all the features except for those that are listed in the parameters. And one of those parameters is the ability to use the sword. Which means if you use enablefeatures(params) and do not include (I forget the number of the param for weapons) you will lose the ability to use the sword and weapons.

Considering this is how I do it on Arca, It is possible to disable weapons using enablefeatures(params) unless I "ZOMGWTFPWNED the graal servers" to make this work.
__________________
Stan.
Reply With Quote
  #16  
Old 12-04-2007, 05:13 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
look at the wiki. You can disable the qmenu though.
__________________
Deep into the Darkness peering...
Reply With Quote
  #17  
Old 12-04-2007, 06:07 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Kyranki View Post
Actually, Vash. enablefeatures(params); disables all the features except for those that are listed in the parameters. And one of those parameters is the ability to use the sword. Which means if you use enablefeatures(params) and do not include (I forget the number of the param for weapons) you will lose the ability to use the sword and weapons.
NPC Code:
      1 - M key (map)
2 - P key (pause)
4 - Q key (weapon select)
8 - R key (show ratings)
0x10 - S+A key combination for dropping items
0x20 - S+D key combination for switching weapons
0x40 - TAB key (if disabled then you cannot switch to the chat field with TAB)
0x80 - display of chat text
0x100 - display of the hearts over player heads
0x200 - display of nicknames
0x400 - toall/PM-icons on the minimap
0x800 - right-click on players opens their profile
0x1000 - emoticons (disable it if you want to do other stuff with control+keys)
0x2000 - Alt+5 for making snapshots
0x4000 - Alt+8/9 for zooming
0x8000 - the logframe where savelog stuff is added



There is no flag for weapons/swords for enablefeatures.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #18  
Old 12-04-2007, 06:35 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Maybe it's showstats dunno.
__________________
Stan.
Reply With Quote
  #19  
Old 12-04-2007, 12:33 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Thats called being owned in the face, Stan.
Quote:
Originally Posted by commands.rtf
disableweapons; disables the player’s sword+bombs+darts
__________________
Reply With Quote
  #20  
Old 12-04-2007, 04:13 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Kyranki View Post
Maybe it's showstats dunno.
GUI.
Reply With Quote
  #21  
Old 12-04-2007, 04:34 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by Inverness View Post
Thats called being owned in the face, Stan.
<3!
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #22  
Old 12-04-2007, 09:01 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by Kyranki View Post
Maybe it's showstats dunno.
Sometimes you seem to be too confident in yourself. You should double check sometimes to refrain from making yourself look stupid in the future, I do!
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #23  
Old 12-04-2007, 11:09 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Kyranki View Post
Actually, Vash. enablefeatures(params); disables all the features except for those that are listed in the parameters. And one of those parameters is the ability to use the sword. Which means if you use enablefeatures(params) and do not include (I forget the number of the param for weapons) you will lose the ability to use the sword and weapons.

Considering this is how I do it on Arca, It is possible to disable weapons using enablefeatures(params) unless I "ZOMGWTFPWNED the graal servers" to make this work.
Think before you speak.
__________________
Reply With Quote
  #24  
Old 12-05-2007, 03:50 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
I get the point. o_o

If so, would someone kindly care to explain what enablefeatures() is doing that makes it so the s button doesn't work then?

Edit: Ok, wait. I have a custom movement system so I feel like an *******. But it doesn't use disableweapons() anywhere. Would disabledefmovement() disable the sword as well? o_O

Edit 2: Yeah, disabledefmovement() is what was disabling the sword (tested it first ;o).
__________________
Stan.

Last edited by Kyranki; 12-05-2007 at 04:02 AM..
Reply With Quote
  #25  
Old 12-05-2007, 04:10 AM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Quote:
Originally Posted by Kyranki View Post
I get the point. o_o

If so, would someone kindly care to explain what enablefeatures() is doing that makes it so the s button doesn't work then?

Edit: Ok, wait. I have a custom movement system so I feel like an *******. But it doesn't use disableweapons() anywhere. Would disabledefmovement() disable the sword as well? o_O

Edit 2: Yeah, disabledefmovement() is what was disabling the sword (tested it first ;o).
Read napo's post, enablefeatures keeps the declared bitmaps enabled.

For example:
enablefeatures( 1 );
Would keep the "M" button enabled for Graal's map viewer. Every other listed feature will not work.

If you want to add another feature append a "-" sign and then another bitflag.
enablefeatures( 1 - 2);
Would enable both the "M" button for the default map viewer, and the "P" to enable Graal's standard pause.

---

disabledefmovement(); disables the player's ability to move, not sure if it prevents the player from swinging or not.
Reply With Quote
  #26  
Old 12-05-2007, 04:10 AM
BigBear3 BigBear3 is offline
Zormite
BigBear3's Avatar
Join Date: Jan 2007
Location: Lynn, MA
Posts: 2,551
BigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond repute
Quote:
Originally Posted by Tigairius View Post
Sometimes you seem to be too confident in yourself. You should double check sometimes to refrain from making yourself look stupid in the future, I do!
Looooooooooooooooooooooooooool.
Reply With Quote
  #27  
Old 12-05-2007, 04:33 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
also enablefeatures( 1 | 2 | 4); "|" works too.
__________________
Deep into the Darkness peering...
Reply With Quote
  #28  
Old 12-05-2007, 04:36 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
@ rapidwolve, I tested some with only a weapon with disabledefmovement() and without any weapons at all. He could swing without the weapon and when the weapon was added he couldn't swing.
__________________
Stan.
Reply With Quote
  #29  
Old 12-05-2007, 04:39 AM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Quote:
Originally Posted by Kyranki View Post
@ rapidwolve, I tested some with only a weapon with disabledefmovement() and without any weapons at all. He could swing without the weapon and when the weapon was added he couldn't swing.
What weapon are you talking about?
Reply With Quote
  #30  
Old 12-05-2007, 05:00 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
It was a custom movement system :o I'm referring to a Weapon NPC of course.
__________________
Stan.
Reply With Quote
  #31  
Old 12-05-2007, 05:02 AM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Quote:
Originally Posted by Kyranki View Post
It was a custom movement system :o I'm referring to a Weapon NPC of course.
So when your custom weapon is equipped (or in the inventory) the character cannot swing, but when it isn't they can? I don't quite follow you.
Reply With Quote
  #32  
Old 12-05-2007, 05:04 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
I was testing the usage of disabledefmovement() and it's relevancy as far as removing functionality for the default sword swing.

I removed all the testers weapon npcs. Then had them relog in. I had them press s and the default swing worked. Then I added the custom movement to them which contains the "disabledefmovement()" function and asked them to press s again and it didn't work.

Get me?
__________________
Stan.
Reply With Quote
  #33  
Old 12-05-2007, 05:07 AM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Quote:
Originally Posted by Kyranki View Post
I was testing the usage of disabledefmovement() and it's relevancy as far as removing functionality for the default sword swing.

I removed all the testers weapon npcs. Then had them relog in. I had them press s and the default swing worked. Then I added the custom movement to them which contains the "disabledefmovement()" function and asked them to press s again and it didn't work.

Get me?
Oh, my bad I completely misunderstood. Hmm, then apparently disabledefmovement() does disable the default sword swing. Never really used it for that though, doesn't really seem practical but you have a custom movement system so that makes sense.
Reply With Quote
  #34  
Old 12-05-2007, 06:35 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Rapidwolve24 View Post
If you want to add another feature append a "-" sign and then another bitflag.
enablefeatures( 1 - 2);
Would enable both the "M" button for the default map viewer, and the "P" to enable Graal's standard pause.
I hope you mean "+".
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #35  
Old 12-05-2007, 05:10 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Tolnaftate2004 View Post
I hope you mean "+".
You stole my post :<
Reply With Quote
  #36  
Old 04-12-2008, 05:18 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
*bump* still no working solution.

EDIT: disableweapons()/disablemovement() work, but seem quite unpractical. Is there a way to just disable the sword? Also is there anyway to make so the player can not pick up the tile bushes?
__________________
Deep into the Darkness peering...
Reply With Quote
  #37  
Old 04-12-2008, 05:21 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
disableweapons and simply rescript the weapon(D)?
Reply With Quote
  #38  
Old 04-12-2008, 05:29 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
I GOT IT!!! Without disabling weapons. I feel really stupid for not realizing this earlier. XP

PHP Code:
setSword"", -1); 
will disable it all together.

Now as for the bush matter. I'm still lost other than using disabling the movement System.
__________________
Deep into the Darkness peering...
Reply With Quote
  #39  
Old 04-12-2008, 05:40 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
That's odd... I thought negatives just made it a healing sword.
Like I said, you can simply just disable weapons... which will only disable the sword and weapon, and rescript the weapons(if you still need to use them). It's not that hard to rescript the weapon function.
Reply With Quote
  #40  
Old 04-12-2008, 06:04 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Well. The weapons sys I already have needs weapons to be enabled (for onKeyPressed and stuff to work)
__________________
Deep into the Darkness peering...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:27 PM.


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