Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 07:24

  • Please register to post and access all features, it's quick, easy and FREE!

 

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 492
Received Thanks: 50
How to make items unable to be weared except of deleting?

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!''



mujake is offline  
Old   #2
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,190
Received Thanks: 847
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 **** 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.


_DreadNought_ is offline  
Old   #3
 
elite*gold: 0
Join Date: Dec 2010
Posts: 492
Received Thanks: 50
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?
mujake is offline  
Old   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,309
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.


pro4never is offline  
Old   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 586
Received Thanks: 335
how about just deleting 'em from ur itemtype.dat??


2slam is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[How To] zszcstallnet.com Items Deleting
Hey Guys, First, yes im HoLy from sro-db.de :P but today i want to show you how to delete other guys items from http://zszcstallnet.com!!! ...
12 Replies - SRO PServer - Discussions / Questions
Deleting items in itemtype
i have tried hexing and i deleted those items but when i try to loading it with the itemtype editor i get allot of errors is there anyway to fix it?...
2 Replies - EO PServer Hosting
Unable to use items under master lvl
there is any method to use pet-char L or exp pot L when we are master lvl + it would be veeeery nice O.O
2 Replies - 12Sky2
Unable to Make It Undetected
I've spent 6 hours making a dozen different code caves and all of them are being detected. Changed cave location, changed jump to and jump back to...
1 Replies - Planetside
ScriptVessel En Ver. unable to make....
'9net9.com' That is on the CoPartner site... So What their not making it??
2 Replies - CO2 Main - Discussions / Questions



All times are GMT +2. The time now is 07:24.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.