Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 04:03

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

Advertisement



Noob Guide on a few features for LOTF.

Discussion on Noob Guide on a few features for LOTF. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Noob Guide on a few features for LOTF.

Just to go over some basic changes that can be done to LOTF easily, but improve the gaming experience.

I was going to make an NPC guide to start, but... Then I figured, if you can't make an NPC, you're not gonna manage anything else. ><

So I'll begin with something simple. Let's say you suddenly decided to add Mobs to Metzone, what aspects of metzone do we need to account for?

-Higher Meteor drop rates.
-No using city gates.
-Reviving outside of metzone after death.

Just basic idea's, can't think of anything else right now. So first, we want the Meteors to drop more then everywhere else.

In Entities.cs, search for...

Code:
uint MoneyDrops = 0;
scroll down the code from there, and you'll see code similar to...

Code:
{
if (Other.ChanceSuccess(1))
   {
       string Item = "1060101-0-0-0-0-0";
       DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
       World.ItemDrops(item);
   }
}
Then below it add something like...

Code:
                    if (Name == "[COLOR="blue"]TreasureBird[/COLOR]")//reads MySql Database for monster name, that way only that monster drops the item at the new drop rate.
                    {
                        if (Other.ChanceSuccess([COLOR="blue"]5[/COLOR]))//the blue number is the drop rate.
                        {
                            string Item = "[COLOR="blue"]1088001[/COLOR]-0-0-0-0-0";//the blue number is the itemUID
                            DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                            World.ItemDrops(item);
                        }
                    }
Now for making sure people don't scroll out of Metzone. Not a complicated procedure, just an annoying one.

In Character.cs, search for...

Code:
else if (ItemParts[0] == "1060020")
{
        Teleport(1002, 429, 378);
        RemoveItem(ItemUID);
}
You'll want to make the CityGate so it's only usable in specific maps. Here's an exmple.

Code:
else if (ItemParts[0] == "1060020")
{
    [COLOR="Red"]if (LocMap == 1002 || LocMap == 1005)[/COLOR]
        Teleport(1002, 429, 378);
        RemoveItem(ItemUID);
}
For every map you want the scroll to be usable, simply add...

Code:
|| LocMap == MapID
onto the

Code:
if (LocMap == 1002 || LocMap == 1005)
And this way if your on a map which doesn't have it's ID specified in the city gates right click function, it will just remove the scroll, leaving you sitting in the same spot. ><

Note: You can also add right click options for other items in this section. Use your imagination, it's not difficult. But if you really can't figure it out, let me know and I'll give you some examples. -_-"

Now we want to make it so when someone dies... they don't revive in the exact same spot they're dead.

In DataBase.cs, go To...

Code:
public static void LoadRevPoints()
Now every time you add a revive map option here, you need to increase the blue number by 1.

Code:
RevPoints = new ushort[[COLOR="blue"]26[/COLOR]][];
Then scroll to the bottom of the list and add... (for this example, we'll make you revive in twin city after death.)

Code:
RevPoints[23] = new ushort[4] { [COLOR="Red"]1210[/COLOR], [COLOR="SeaGreen"]1002[/COLOR], [COLOR="Blue"]430[/COLOR], [COLOR="Blue"]380[/COLOR] };//Red is the map you're on. Green is the map you'll revive on.  Blue are the coordinates.
-----------------------------------------------------------------------

I know, it's nothing special, but I got bored, and there are bound to be people who don't have a clue how to do this, and will eventually ask.
Incariuz is offline  
Old 12/01/2008, 22:32   #2
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Just a note, it might be easier to specify which maps you cannot use a scroll on, the MetZone map for example.
nTL3fTy is offline  
Thanks
1 User
Old 12/01/2008, 22:47   #3
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
I attempted doing it that way myself. It didn't work oddly. I tried doing it simple to like let's say.

Code:
if (LocMap > 1000 && LocMap < 1209)
or

Code:
if (LocMap >= 1000 && LocMap <= 1209)
but the source wouldn't accept those. So this is the only working manner I've found with LOTF where that specific scenerio is concerned.
Incariuz is offline  
Old 12/01/2008, 23:07   #4
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
What about
Code:
if (LocMap != 1210) { ... }
or
Code:
if (LocMap == 1210) { return; }
nTL3fTy is offline  
Old 12/01/2008, 23:17   #5
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Well the major issue is it wouldn't accept an else if, or else option for me to be able to have it read what maps weren't available (don't even ask why, cause it makes no sense to me either. It works in other item funtions for me, just not scrolls.), so therefor I had to use my displayed method so teleporting would actually be possible. I tried the options I showed you to try and save having to type every map, instead reading a range of maps to which the gate would work, but the source wouldn't accept those either. Who knows, maybe it's just my source being a complete pain in the ***. ><
Incariuz is offline  
Old 12/02/2008, 03:46   #6
 
elite*gold: 0
Join Date: Oct 2007
Posts: 120
Received Thanks: 24
yes
u can make it like that
Quote:
if (LocMap == 1210) { return,or message sent "you can't use scroll here ,or make it remove item and do nothing "; }
then don't use else if
use
Quote:
if (LocMap!=1210 || LocMap!=6000,..etc)
{item do its use }
this remember me with Jail system to make it Don't let u out if GW on except it is xx:00 or xx:30
XD)
elragal_30 is offline  
Old 12/02/2008, 10:51   #7
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
Bad explained....
Code:
                    if (Name == "[COLOR="blue"]TreasureBird[/COLOR]")//[B]check if the mob that just died has the name "TreasureBird", no way reading it from mysql [/B]
                    {
                        if (Other.ChanceSuccess([COLOR="blue"]5[/COLOR]))//the blue number is the drop rate.
                        {
                            string Item = "[COLOR="blue"]1088001[/COLOR]-0-0-0-0-0";//[B]UID = unique id, with an unique id , u can find and item or anything somewhere, and an ID = in this case ItemID, that will be dropped ,totaly not the same[/B]
                            DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                            World.ItemDrops(item);
                        }
                    }
alexbigfoot is offline  
Old 12/02/2008, 14:04   #8
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Quote:
Originally Posted by alexbigfoot View Post
Bad explained....
Code:
                    if (Name == "[COLOR="blue"]TreasureBird[/COLOR]")//[B]check if the mob that just died has the name "TreasureBird", no way reading it from mysql [/B]
                    {
                        if (Other.ChanceSuccess([COLOR="blue"]5[/COLOR]))//the blue number is the drop rate.
                        {
                            string Item = "[COLOR="blue"]1088001[/COLOR]-0-0-0-0-0";//[B]UID = unique id, with an unique id , u can find and item or anything somewhere, and an ID = in this case ItemID, that will be dropped ,totaly not the same[/B]
                            DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                            World.ItemDrops(item);
                        }
                    }
It reads the name TreasureBird from the monster you add to mysql. If I'm wrong, why does it work?

I use this method for making goldghosts, agile rats, and fiend bats in lab to drop the appropriate tokens for entering the next levels as lab aswell.

And what you said about the UID part made no sense to me what so ever.
Incariuz is offline  
Old 12/02/2008, 15:21   #9
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
What you have described as UID is actually the Items ID, not UID.
tanelipe is offline  
Old 12/03/2008, 00:42   #10
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
UID != ItemID.

Conquer has a UID for everything, Items, Monsters, Characters, NPCs(Some people call it the NPCId, i still call it NPCUID).
tao4229 is offline  
Old 12/03/2008, 00:56   #11
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
A well... I merely wanted to contribute a little something that may show a few newer coders around for some functions they may need to deal with on a number of cases. Turns out it was a pointless contribution.
Incariuz is offline  
Reply


Similar Threads Similar Threads
[GUIDE]Making Quest LOTF. Hey Look is Me, Yea. Good Guide,Basic, SO PRO!
12/23/2009 - CO2 PServer Guides & Releases - 13 Replies
Hello again Elite Pvpers. This is for LOTF. I want to show you how to creat your own basic quest. Lets look on the steps we are going through: 1. Making the steps for the quests 2. Making it save to database everytime go to next step 3. Making the npc's for the quest PLEASE READ EVERYTHING I HAVE WRITTEN CAUSE IS IMPORTANT IF YOU DONT WANT ERROR Well there is those 3 steps.
[NOOB LOTF QUESTION HERE]
06/25/2009 - CO2 Private Server - 6 Replies
can someone upload and/or post a link here to these following sources.. Dexterity Co ( IT WAS RELEASED BEFORE ) Andrea's source (skynight or something idk ) ( IT WAS RELEASED BEFORE ) +K IF U DO =] Warning : Any flames will be reported.
[Noob Release]Socketed Gourd Seller - Lotf
04/05/2009 - CO2 PServer Guides & Releases - 6 Replies
Credits 2 Tao4429 aka Saint and PeteNinja both for their help on 1 error xD **ALL CREDITS TO KINSHI! SOZ FOR DOUBLE POST!!! BUT THIS IS HOW IT WORKS! MY VERSIONS 2 LONG =/ Well here it is! if (CurrentNPC == 7501) // Socket'd Gourd Seller {
[GUIDE]Infinite AB (complete noob guide)
02/18/2008 - Planetside - 38 Replies
Guide removed.... Register and visit Memory wars team website at Offical Memory Wars Forum



All times are GMT +1. The time now is 04:05.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.