|
You last visited: Today at 09:16
Advertisement
Gem Effect
Discussion on Gem Effect within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
09/11/2011, 07:37
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
Gem Effect
This is Phoenix Gem Effect only, in my working source I have add all of them and its working fine now.
I will not tell you where to put this and how to complete all the gem effect, you have to figure it out.
PHP Code:
public void CheckForSuperGems(Client.GameState client)
{
for (uint i = 1; i < 12; i++)
{
if (i != 7)
{
Interfaces.IConquerItem item = client.Equipment.TryGetItem(i);
if (item != null && item.ID != 0)
{
if (item.SocketOne != 0)
{
if (item.SocketOne == Enums.Gem.SuperPhoenixGem)
{
if (ServerBase.Kernel.Rate(3)) //this is where your chances when to display the phoenix gem effect
{
_String str = new _String(true);
str.UID = attacker.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("phoenix");
attacker.Owner.Screen.SendScreen(str, true);
}
}
}
}
}
}
}
|
|
|
09/11/2011, 10:57
|
#2
|
elite*gold: 0
Join Date: Jan 2008
Posts: 68
Received Thanks: 11
|
Double Rainbows Dude xD,thx for dis <3
|
|
|
09/11/2011, 11:47
|
#3
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
Quote:
Originally Posted by MegaArcherZGX
Double Rainbows Dude xD,thx for dis <3
|
Your Welcome!
|
|
|
09/11/2011, 15:58
|
#4
|
elite*gold: 0
Join Date: May 2011
Posts: 84
Received Thanks: 2
|
Doesn't work, I added the code in Game > Attacking > Handle.cs I debugged, nothing...
I even changed the chance to 100%
I am missing something?
|
|
|
09/11/2011, 16:37
|
#5
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Constructive criticism.
#1: Do NOT calculate how many gems you have every time there's an attack... The only time it would change is when you equip an item... Therefor in your equip code you call a Recalculate type method which updates all your stats including how many super gems of each type you have equipped (or better yet... a percent chance for a gem effect to go off so you avoid extra math operations!)
#2: A simple "DisplayGems" type method might be nice to have inside your client. Call THAT when you attack someone. Then inside the display gems just say if(PercentChance(RainbowGems)) DisplayRainbowGems; if(PercentChance(DragonGEms)) DisplayDragonGems;
etc
|
|
|
09/11/2011, 17:24
|
#6
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
@pro4never: Thanks, you have enlightened me about that, anyway its working fine for now, I will just try to use the one you suggested.
@HerpDerpNigga: You have to call it every time you take attack, not just copying and pasting it.
|
|
|
09/26/2011, 02:44
|
#7
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
So i Added it Too into handle.cs but nothing changed
|
|
|
09/26/2011, 03:05
|
#8
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
You have to call it every time you take attack, not just copying and pasting it.
|
|
|
09/26/2011, 03:32
|
#9
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by marlyandedsel
You have to call it every time you take attack, not just copying and pasting it.
|
Aha..i guess i understood u gonna try it now thx
i couldnt add it successfuly ..Well i wanna ASk a Question .when i Add it successfuly will the Phoenix wings appear to me after Attacking ??
|
|
|
09/26/2011, 12:13
|
#10
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
yea of course when you take attack, it depends on the chances rate.
|
|
|
09/26/2011, 17:56
|
#11
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Well it took me 2 hours or trying to get code work after i added the code in the right place which obviously in Handle.cs but the Main problem how to make This Work ...Could u Help me in that ?
|
|
|
09/27/2011, 00:24
|
#12
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
nah! Find where you take attack melee and range attack and call it there
|
|
|
09/27/2011, 04:18
|
#13
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
very nice. although I have a question, how can I find the effect names of each effect? or what are they?
|
|
|
09/27/2011, 06:25
|
#14
|
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 1
|
I add codes effects not Chagall Avatar
|
|
|
09/27/2011, 14:27
|
#15
|
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
|
Quote:
Originally Posted by killersub
very nice. although I have a question, how can I find the effect names of each effect? or what are they?
|
Super Dragon Gem = goldendragon
Super Phoenix Gem = phoenix
Super Rainbow Gem = rainbow
Super Violet Gem = purpleray
Super Moon Gem = moon
Super Kylin Gem = goldenkylin
Super Fury Gem = fastflash
Super Tortoise Gem = recovery
|
|
|
 |
|
Similar Threads
|
+10 effect
06/29/2011 - Dekaron Private Server - 0 Replies
I'm trying to add a +10 effect strictly for GM weapons to be given out via CP, so I don't actually need the argates for them or have them in the fortification system.
I already have the effect. What I need to know is if I clone the a previous eff_upgrade.dds file and layer into my +10 effect, what do I then need to do to make my GM weapons point to that effect file.
I appreciate any help you can give.
|
Dodge effect , Warp effect
01/04/2010 - S4 League - 7 Replies
this is a threat to glados , but other can answer.
how can u have that effect?
this is the video
YouTube - S4 League GLaDO is Hacking
|
[Help] 2nd RB Effect Fix
04/21/2009 - CO2 Private Server - 2 Replies
Okay here's the problem. The 2nd RB Effect keeps looping over and over even if I add a timer for it. It overlaps each other until it turns bright purple. It's really disturbing and I spent almost two hours trying to fix it and I can't get it to work. And I am really annoyed because it's as if I wasted those two hours and learned nothing at all. So please, if you know how to fix it please help me...
|
sup gem effect
10/13/2007 - CO2 Weapon, Armor, Effects & Interface edits - 3 Replies
stupid quest of me but how to make the dam super gems off?
they keek raising my ping to 279k in tg and than i d/c
didnt find any topic where it stand
|
SDG Effect and 115 Bow
07/26/2007 - CO2 Weapon, Armor, Effects & Interface edits - 23 Replies
I have edited the sdg effect and the 115 bow so they are blue... i thought it would be kidna cool, if u watn any other colors just tell me and i'll work on it! :cool:
http://i51.photobucket.com/albums/f356/warheadsou r/SDGand115Bow.jpg
this file is for the bow, it goes into C:/Program Files/Conquer 2.0/c3/effect/bow
Blue Bow Download Link
the file for teh blue sdg goes into C:/Program Files/Conquer 2.0/c3/effect/dragonhate there are 3 files taht u have to put into the folder...
|
All times are GMT +1. The time now is 09:17.
|
|