Register for your free account! | Forgot your password?

You last visited: Today at 20:42

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

Advertisement



2 Questions

Discussion on 2 Questions within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
2 Questions

Is it possible to make it so you cant use any Spells or Skills in a specific map?

&

How can you make it so that if you buy an item with say BoundCps that those items cant be traded?
ajstyles316 is offline  
Old 03/04/2013, 14:35   #2
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
1st : Sure you can.. just go to Handle.cs ( if u are using Impulse based Sources ) .. then search for the skill ID that u would like to Deactivate and write this code ..

if(attacker.MapID == // ID of map u would like the skill to be activated in) { return; } .. Ta da

what this code do is .. when the player become in map u deactivated this skill in and trying to use it nothing will happen and if u would like smthing Professional send the client Message telling him that he cant use this spell at this map

2nd : ConquerItem Packet got offset to determine if the item u have is bound or not .. when u get item set this offset to 1 and this item will be saved in the database .. when u login into server this Item will be loaded and u should Re-Send him ConquerItem Packet again
shadowman123 is offline  
Thanks
1 User
Old 03/04/2013, 16:38   #3
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Cheers got the buy bound items working fine now, For the spells & skills i was wanting to to dissallow all skills & spells in the specific map rather than just 1, Its for an event map where monster kills only count while using a specific item then realised they could still use skills ect to aoe groups of mobs hence needing to make it so ya cant use any skills or spells at all in that map.
ajstyles316 is offline  
Old 03/04/2013, 17:03   #4
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
which source u are using ?
shadowman123 is offline  
Old 03/04/2013, 17:47   #5
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Ahh shoot sorry thought id written it, Im using a Trinity base source.
ajstyles316 is offline  
Old 03/04/2013, 19:06   #6
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
It's a flag to the map that does it, send with the MapInfoPacket.
Super Aids is offline  
Old 03/04/2013, 22:49   #7
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
i think there r many ways to disallow skill

u can search for that in ur handle.cs

PHP Code:
public static void ReceiveAttack 
no skills allowed
PHP Code:
 if (attacker.MapID == //MapID)
            
{
                        if (
spell != null)
                        {
                            
attacker.Owner.Send(new Message("Skills isn't allowed!"System.Drawing.Color.Red0x7dc));
                            return;
                        }

this to make some spell
PHP Code:
 if (attacker.MapID == //MapID)
            
{
                        if (!
Constants.AllowedSpell.Contains(spell.ID) || spell != null)
                        {
                            
attacker.Owner.Send(new Message("Only Some Skills is allowed!"System.Drawing.Color.Red0x7dc));
                            return;
                        }

and just add this at Serverbase/constants
which can u just add allowed skill
PHP Code:
public static readonly List<ushortAllowedSpell = new List<ushort> { 0x4150x4160x17700x288d0x2af80x2afd700 }; 
Try This it may do the job
abdoumatrix is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 20:42.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.