How to make items unable to be weared except of deleting?

01/03/2012 19:33 mujake#1
I tried to delete talismans and more stuff from my 5525 source and due to the fact that items were missing from Items.txt the source started crashing and i am thinking to make some restrictions not deleting them...any idea?
I've tried to delete them from packet handler and most of the references but when i try to equip it, it disappears and i get an error on console regarding to equipping it.
Eg.:
I am thinking at something like an message : "You are not allowed to wear this kind of items!''
01/03/2012 19:42 _DreadNought_#2
Very simple, upon equipping the item you need to check the item ID range and see if its between a tails ID range if so, not allow it.

If your source is coded well it would be much more simple, in my first source from scratch it would've been like so:
Code:
if (item.isTails())
{
client.Send(New message("You are not allow to wear that shit bro, you crazy?!", Color. Blue, MessageID.Center));
}
^- three lines, job done.

#edit
incase you ask, IsTails is a method that returns a bool, it simply checks one of the current items ENUMS and tells you if its a tails or w/e, quicker then checking the ranges.
01/03/2012 21:03 mujake#3
i am having an impulse source upgraded to 5518+ one released by hammy on another forum ,and should i put something like that in packet handler, where it checks the items positioning?or in equipment.cs?
01/03/2012 23:17 pro4never#4
Quote:
Originally Posted by mujake View Post
i am having an impulse source upgraded to 5518+ one released by hammy on another forum ,and should i put something like that in packet handler, where it checks the items positioning?or in equipment.cs?
Just use albetros lol. If its the one I'm thinking of that you're using it has virtually no features. Albetros is stable, medium amount of features.and already has Talism not allowed.
01/04/2012 00:10 2slam#5
how about just deleting 'em from ur itemtype.dat??