Particle's Custom RPG

Assistance => Assistance & Feedback => Topic started by: Xenos on April 23, 2005 11:16 am CDT

Title: Binding a key to unequip an item
Post by: Xenos on April 23, 2005 11:16 am CDT
[Post deleted by administrator]

This allows a rather nasty exploit.
Title:
Post by: GStricto on April 23, 2005 12:40 pm CDT
Boots of Gliding is the name of the item in the inventory, you can use("Rusty Long Sword"); to equip things eventhough the name according to the code is rlongsword as a one word thing.  bootsofgliding0 is what you need to unequip but since server names and inventory name apperance is different, there isn't much you can do to unequip.  You may try the exact same bind again i.e. use("Boots of Gliding"); but I think someone tried that before and it didn't work.  (The only reason I would think it might is because if you click use from the invo window, it takes them back off.)

Good luck.
Title:
Post by: Artorius on April 24, 2005 10:53 am CDT
Can't you just ask for fastswing?  :lol:


nubs....
Title:
Post by: Xenos on April 25, 2005 12:34 pm CDT
Not looking for fastswing.  I still cant seem to get the unequip to work. I would be nice to switch from using paws to ww's without going to the inv screen.
Title:
Post by: -eViL- on April 25, 2005 04:22 pm CDT
use(BootsOfGliding0); should work, if it doesn't, it is because an item name was changed or because I am using the wrong capital letters for the item.

BootsOfGliding and BootsOfGliding0 should be the corresponding item names, no " 's needed for them.
Title:
Post by: GStricto on April 25, 2005 05:53 pm CDT
Quote from: "-eViL-"
use(BootsOfGliding0); should work, if it doesn't, it is because an item name was changed or because I am using the wrong capital letters for the item.

BootsOfGliding and BootsOfGliding0 should be the corresponding item names, no " 's needed for them.
Tru dat yo
Title:
Post by: DeathAdder on April 26, 2005 01:19 am CDT
This is my first post in about 4 months. LOL Yea I'm back ^_^ AGAIN. HAHA. Actually, to equip and unequip things I found a really great way to do it for anything. Each item has a cirtain number attached to it, and usually the unequipped and equipped are like side by side such as 22 and 23.. I know I had the code to type into the console to get the numbers than you just use like use(""); using that number I think. I'll go dig it up for you and let you know soon.. I gotta go to bed.. Prolly won't sleep now that I want to start playing RPG again ^_^ and tuesday happens to be the crappy day of the week, can't sleep in the extra hour :(. I'll let you know soon. Its a really great way to do it.
Title:
Post by: DeathAdder on April 26, 2005 10:54 am CDT
Umm. I've done a reformat sinse than... #&#^ now i'll have to get everything set again >_< bah, I'll look for that item thingymajiggy tonight if I have time. I'm just installing the game and RPG now.

Sorry.
Title:
Post by: DeathAdder on April 26, 2005 11:45 pm CDT
Yay I found it, finaly...

Code: [Select]
function DA::GetItemID()
{
%itemid = Control::getValue(InventoryList);

echo(%itemid);
}


Ok there, throw that into your autoexec or anywhere, open you invintory, select the item you want the number for, type DA::GetItemID(); in the consol and you have your item id. Use that number for whatever you need to. You'll notice that the number is different for the same item when its equipped and unequipped. ^_^

or just select an item and have
Control::getValue(InventoryList);
ready to paste.. my little function is prolly easier to remember, or you can change the funtion name to be like itemid or whatever you want that youll remember.
Title:
Post by: Xenos on April 27, 2005 04:48 pm CDT
Thanks DeathAddr. Corona helped figure the rest out for me. This is how to do it.

Code: [Select]
[code removed]

The other items are 19 and 20 for glides, 21 and 22 for ww's.

Im suprised that nobody does this. You can switch to ww from paws on the fly  which is nice when your running from NFY.
Title:
Post by: GStricto on April 27, 2005 06:25 pm CDT
Quote from: "Xenos"
Im suprised that nobody does this. You can switch to ww from paws on the fly  which is nice when your running from NFY.

NFY...  Now isn't he a story.  He has got to be one of the most frustrating people on PCRPG.  Admins convince him to remort instead of max and become a pain and now he is god+ in RL.  And what I really can't stand as PK is hearing people complain about him all the time then when people start to fight back, he complains that I'm not doing my job.  It's hard to have any sympathy for someone causing so many headaches.
Title:
Post by: Xenos on April 27, 2005 06:37 pm CDT
You should just ignore his complaints. He is a god+ now he can handle himself.   I can only play now when he is not on because I get targeted immediately. Im only a RL 22.  The only person that can fight back against him is cronos which he does.  

How does one deal with this in game? Obviously I cant fight him, there is no way for me to win.
Title:
Post by: GStricto on April 27, 2005 07:17 pm CDT
Exactly, the server is set up where the rules protect the people like him that get off on making other players miserable.  There isn't anything you can do in game except run like you are or quick binding a key to #cast transport store or something like that.  He is also a player who (in the course of a week) had over 100 RP or somewhere near there.  It isn't right when he goes around causing troubles then when Cronos tries to LCK him back to 0 RP, NFY unsavory womanes.
Title:
Post by: DeathAdder on April 28, 2005 10:08 pm CDT
Sigh, its bad cause NFY sais the server needs someone like him to keep things interesting... I don't know about you guys, but I'd be DAMN glad if there wasn't any pk'ing or mugging in the game. I'd still find the game fun. Hes just a messed up kid with no life. Not much you can do about that.
Title:
Post by: GStricto on April 29, 2005 08:40 am CDT
Quote from: "DeathAdder"
Sigh, its bad cause NFY sais the server needs someone like him to keep things interesting... I don't know about you guys, but I'd be DAMN glad if there wasn't any pk'ing or mugging in the game. I'd still find the game fun. Hes just a messed up kid with no life. Not much you can do about that.
PKing is alright for houses or for duels, mugging has it's place.  The real fact of the matter is that there should be hard-coded consequences so that admins and PKs aren't required to enforce rules.  Besides, staying within the rules (as NFY always does, to his credit) the worst that happens is that a theif fails a steal.  It's no wonder that people like him cause problems.
Title:
Post by: Aphex on April 29, 2005 09:54 am CDT
there is a simple way to handle this. when he breaks the rules punish him.

you cant make everyone happy and that's the point. i mean look at when shorty played. haha. you just have to know how to handle nfy. and since we are friends he listens to my suggestions most of the time. that doesnt mean he does it, but he still listens. :)
Title:
Post by: Vi on April 29, 2005 10:06 am CDT
NFY is <3
Title:
Post by: GStricto on April 29, 2005 10:24 am CDT
Quote from: "Aphex"
there is a simple way to handle this. when he breaks the rules punish him.
Yes, that is the simple fix...  except that he never breaks rules.  The way Part has explicitly defined what is "allowed" gives the assholes the idea that they are protected.  This obviously shouldn't be the case, but nobody wants to deal with all of the unsavory womaning that results when "punishment" isn't "justified".
Title:
Post by: DeathAdder on April 29, 2005 02:44 pm CDT
Exactly, people like NFY can be within the rules but still completely ruin the game for most of the people who play. So thus, he is under protection while he ruins the game for everyone else.
Title:
Post by: HUBBA on April 30, 2005 11:54 pm CDT
Not suppose to be able to get 100 rp in a week. There is a set house kill for that reason. 16 a day max rp is all you should be able to get. Cause 16 a day when your in a house is all you are allowed. OH an for those who are fastswining, let it be known it is illegal. You will be punished.
Title:
Post by: Vi on May 1, 2005 02:12 am CDT
Who keeps count of how much rp they are getting when they are power ranking? :roll:
Title:
Post by: Particle on May 1, 2005 07:22 am CDT
As nice as binding to unequip is, it causes a problem.  Please refrain from sharing the code.
Title:
Post by: Xenos on May 3, 2005 12:47 pm CDT
Didnt realise what kind of trouble it caused until I used the binds.  I will only use it the legit way. You can keep an eye on me if you want.

NFY is no longer an issue for me. He was just bored and I was the only one within his level that he could target.
Title:
Post by: Hidama on May 29, 2005 08:48 pm CDT
I actually did have code to unequip and equip boots for a year now I think, I shared it with taur. Oh and if there is a problem with fastswing, just ask and I'll show you a few possible ways to get rid of it. fastswinging is mean because it makes it so anyone near you can't level :(

...

And I know I haven't been posting other updates to the coding lessons, I've had the 3rd one done for a month now but never put it up... because no one answered the question in the second lesson. lol just kidding, I haven't been on the forum or tribes in a while. But still, the question in the second lesson addresses a funny but not too important mess up in the code of one of the functions.

And if you ever really have to use keybinds to switch from one pair of boots to the other, NFY will probably end up stealing them anyways.