You last visited: Today at 07:08
Advertisement
[Weapon Master] he's gonna fail at Maths!!
Discussion on [Weapon Master] he's gonna fail at Maths!! within the CO2 Private Server forum part of the Conquer Online 2 category.
07/28/2012, 20:46
#1
elite*gold: 0
Join Date: Jul 2011
Posts: 146
Received Thanks: 57
[Weapon Master] he's gonna fail at Maths!!
the first thing you can see is a blade with +100k attack, impossible, well this started with less than 8k, after upgrading it from 135 to 140, weapon master is adding +20k attack every level, i know this sucks.
Here's the weapon master's code, what's wrong with that jerk? i tried to understand, tried few fixes, and then figured out that i'm like him haha
PHP Code:
#region Weapon Master
case 7050 :
{
switch ( npcRequest . OptionID )
{
case 0 :
{
dialog . Text ( "My brothers, Magic Artisan and Artisan Wind, both need meteors to upgrade, but I need only dragonballs." );
dialog . Text ( "I upgrade item's level only and I want only one dragonball for my service." );
dialog . Option ( "Upgrade level." , 1 );
dialog . Option ( "I'll just leave" , 255 );
dialog . Send ();
break;
}
case 1 :
{
int aut = npcRequest . OptionID * 10 ;
dialog . Text ( "Select which item's details you want to change?" );
dialog . Option ( "Headgear." , ( byte )( aut + 1 ));
dialog . Option ( "Necklace." , ( byte )( aut + 2 ));
dialog . Option ( "Armor." , ( byte )( aut + 3 ));
dialog . Option ( "Main Weapon." , ( byte )( aut + 4 ));
dialog . Option ( "Left Weapon/Shield." , ( byte )( aut + 5 ));
dialog . Option ( "Ring." , ( byte )( aut + 6 ));
dialog . Option ( "Boots." , ( byte )( aut + 8 ));
dialog . Option ( "I'll just leave" , 255 );
dialog . Send ();
break;
}
case 100 :
{
if ( client . SelectedItem == 0 )
return;
var item = client . Equipment . TryGetItem ( client . SelectedItem );
var itemdetail = Conquer_Online_Server . Database . ConquerItemInformation . BaseInformations [ item . ID ];
Conquer_Online_Server . Database . ConquerItemInformation infos = new Conquer_Online_Server . Database . ConquerItemInformation ( item . ID , item . Plus );
if (! item . ID . ToString (). EndsWith ( "9" ))
{
dialog . Text ( "Sorry you can only levelup Super Items." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120269 || item . ID == 121269 || item . ID == 150269 || item . ID == 160249 || item . ID == 151269 || item . ID == 152279 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117309 || item . ID == 118309 || item . ID == 111309 || item . ID == 114309 || item . ID == 112309 || item . ID == 152279 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120268 || item . ID == 121268 || item . ID == 150268 || item . ID == 160248 || item . ID == 151268 || item . ID == 152278 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117308 || item . ID == 118308 || item . ID == 111308 || item . ID == 114308 || item . ID == 112308 || item . ID == 152278 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120267 || item . ID == 121267 || item . ID == 150267 || item . ID == 160247 || item . ID == 151267 || item . ID == 152277 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117307 || item . ID == 118307 || item . ID == 111307 || item . ID == 114307 || item . ID == 112307 || item . ID == 152277 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120265 || item . ID == 121265 || item . ID == 150265 || item . ID == 160245 || item . ID == 151265 || item . ID == 152275 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117305 || item . ID == 118305 || item . ID == 111305 || item . ID == 114305 || item . ID == 112305 || item . ID == 152275 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
switch ( client . UpdateType )
{
case 1 :
case 2 :
{
if (! item . ID . ToString (). EndsWith ( "9" ))
{
dialog . Text ( "Sorry you can only levelup Super Items." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120269 || item . ID == 121269 || item . ID == 150269 || item . ID == 160249 || item . ID == 151269 || item . ID == 152279 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117309 || item . ID == 118309 || item . ID == 111309 || item . ID == 114309 || item . ID == 112309 || item . ID == 152279 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 120268 || item . ID == 121268 || item . ID == 150268 || item . ID == 160248 || item . ID == 151268 || item . ID == 152278 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117308 || item . ID == 118308 || item . ID == 111308 || item . ID == 114308 || item . ID == 112308 || item . ID == 152278 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120267 || item . ID == 121267 || item . ID == 150267 || item . ID == 160247 || item . ID == 151267 || item . ID == 152277 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117307 || item . ID == 118307 || item . ID == 111307 || item . ID == 114307 || item . ID == 112307 || item . ID == 152277 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120265 || item . ID == 121265 || item . ID == 150265 || item . ID == 160245 || item . ID == 151265 || item . ID == 152275 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117305 || item . ID == 118305 || item . ID == 111305 || item . ID == 114305 || item . ID == 112305 || item . ID == 152275 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
byte cost = ( byte )( itemdetail . Level / 6 );
cost += ( byte )(( item . ID % 10 ) / 3 );
uint id = 1088001 ;
if ( client . UpdateType == 2 )
id ++;
if ( client . Inventory . Contains ( id , cost ))
{
client . Inventory . Remove ( id , cost );
//client.UnloadItemStats(item, false);
if ( client . UpdateType == 1 )
item . ID = infos . CalculateUplevel ();
else
item . ID = infos . CalculateDownlevel ();
if ( infos . BaseInformation . ID == item . ID )
return;
Conquer_Online_Server . Database . ConquerItemTable . UpdateItemID ( item , client );
item . Mode = Conquer_Online_Server . Game . Enums . ItemMode . Update ;
item . Send ( client );
client . LoadItemStats ( item );
client . Equipment . UpdateEntityPacket ();
}
break;
}
case 3 :
{
if (! item . ID . ToString (). EndsWith ( "9" ))
{
dialog . Text ( "Sorry you can only levelup Super Items." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120269 || item . ID == 121269 || item . ID == 150269 || item . ID == 160249 || item . ID == 151269 || item . ID == 152279 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117309 || item . ID == 118309 || item . ID == 111309 || item . ID == 114309 || item . ID == 112309 || item . ID == 152279 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120268 || item . ID == 121268 || item . ID == 150268 || item . ID == 160248 || item . ID == 151268 || item . ID == 152278 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117308 || item . ID == 118308 || item . ID == 111308 || item . ID == 114308 || item . ID == 112308 || item . ID == 152278 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120267 || item . ID == 121267 || item . ID == 150267 || item . ID == 160247 || item . ID == 151267 || item . ID == 152277 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117307 || item . ID == 118307 || item . ID == 111307 || item . ID == 114307 || item . ID == 112307 || item . ID == 152277 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120265 || item . ID == 121265 || item . ID == 150265 || item . ID == 160245 || item . ID == 151265 || item . ID == 152275 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117305 || item . ID == 118305 || item . ID == 111305 || item . ID == 114305 || item . ID == 112305 || item . ID == 152275 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
byte cost = ( byte )( itemdetail . Level / 30 );
cost += ( byte )(( item . ID % 10 ) / 2 );
uint id = 1088000 ;
if ( client . Inventory . Contains ( id , cost ))
{
client . Inventory . Remove ( id , cost );
//client.UnloadItemStats(item, false);
item . ID ++;
Conquer_Online_Server . Database . ConquerItemTable . UpdateItemID ( item , client );
item . Mode = Conquer_Online_Server . Game . Enums . ItemMode . Update ;
item . Send ( client );
client . LoadItemStats ( item );
client . Equipment . UpdateEntityPacket ();
}
break;
}
}
break;
}
default:
{
if ( npcRequest . OptionID == 255 )
break;
byte SelectedItem = ( byte )( npcRequest . OptionID % 10 );
byte NowType = ( byte )( npcRequest . OptionID / 10 );
if ( client . Equipment . Free ( SelectedItem ))
{
dialog . Text ( "You have to be wearing the selected item." );
dialog . Option ( "I'll just leave" , 255 );
dialog . Send ();
return;
}
var item = client . Equipment . TryGetItem ( SelectedItem );
var itemdetail = Conquer_Online_Server . Database . ConquerItemInformation . BaseInformations [ item . ID ];
if (! item . ID . ToString (). EndsWith ( "9" ))
{
dialog . Text ( "Sorry you can only levelup Super Items." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120269 || item . ID == 121269 || item . ID == 150269 || item . ID == 160249 || item . ID == 151269 || item . ID == 152279 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117309 || item . ID == 118309 || item . ID == 111309 || item . ID == 114309 || item . ID == 112309 || item . ID == 152279 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120268 || item . ID == 121268 || item . ID == 150268 || item . ID == 160248 || item . ID == 151268 || item . ID == 152278 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117308 || item . ID == 118308 || item . ID == 111308 || item . ID == 114308 || item . ID == 112308 || item . ID == 152278 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120267 || item . ID == 121267 || item . ID == 150267 || item . ID == 160247 || item . ID == 151267 || item . ID == 152277 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117307 || item . ID == 118307 || item . ID == 111307 || item . ID == 114307 || item . ID == 112307 || item . ID == 152277 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 120265 || item . ID == 121265 || item . ID == 150265 || item . ID == 160245 || item . ID == 151265 || item . ID == 152275 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( item . ID == 612389 || item . ID == 611389 || item . ID == 117305 || item . ID == 118305 || item . ID == 111305 || item . ID == 114305 || item . ID == 112305 || item . ID == 152275 )
{
dialog . Text ( "This item's level cannot be upgraded anymore." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( NowType == 1 )
{
dialog . Text ( "It will cost you one dragonball. Do you accept the Amount?" );
dialog . Option ( "Yes." , ( byte )( 20 + SelectedItem ));
dialog . Option ( "No thank you." , 255 );
dialog . Send ();
}
else
{
Conquer_Online_Server . Database . ConquerItemInformation infos = new Conquer_Online_Server . Database . ConquerItemInformation ( item . ID , item . Plus );
Conquer_Online_Server . Database . ConquerItemInformation infos2 = new Conquer_Online_Server . Database . ConquerItemInformation ( infos . CalculateUplevel (), item . Plus );
if ( client . Entity . Level < infos2 . BaseInformation . Level )
{
dialog . Text ( "You need level " + infos2 . BaseInformation . Level + " first." );
dialog . Option ( "Ahh sorry." , 255 );
dialog . Send ();
client . SelectedItem = 0 ;
client . UpdateType = 0 ;
return;
}
if ( client . Inventory . Contains ( 1088000 , 1 ))
{
client . Inventory . Remove ( 1088000 , 1 );
//client.UnloadItemStats(item, false);
item . ID = infos . CalculateUplevel ();
Conquer_Online_Server . Database . ConquerItemTable . UpdateItemID ( item , client );
item . Mode = Conquer_Online_Server . Game . Enums . ItemMode . Update ;
item . Send ( client );
client . LoadItemStats ( item );
client . Equipment . UpdateEntityPacket ();
}
}
}
break;
}
break;
}
#endregion
07/28/2012, 20:54
#2
elite*gold: 0
Join Date: Jun 2006
Posts: 899
Received Thanks: 479
Why do you have client.UnloadItemStats(item, false); commented out? I'm pretty sure this removes the stats of the existing item. Therefor when you upgrade, your stats are being added together.
07/28/2012, 21:05
#3
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
You just gotta decrease the old attack/defense etc of the old item, I had this problem before, its pretty easy to fix tho, so yeah.
07/28/2012, 21:40
#4
elite*gold: 0
Join Date: Jul 2011
Posts: 146
Received Thanks: 57
the attack (real attack) is back after the character relogs, i mean when you ypgrade the item, you get 200k attack, relog and you'll find it back to the real amount.
07/28/2012, 22:40
#5
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by
C#Storm
the attack (real attack) is back after the character relogs, i mean when you ypgrade the item, you get 200k attack, relog and you'll find it back to the real amount.
well you should Load all item information once there is a change in status in order to avoid bugs ,, or even load the item status
07/28/2012, 22:46
#6
elite*gold: 0
Join Date: Jul 2011
Posts: 146
Received Thanks: 57
i fixed it, thanks guys ^^
07/29/2012, 04:05
#7
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
nice hard coded item ids
07/29/2012, 09:22
#8
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 82
worst code ever
07/29/2012, 09:32
#9
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by
ChingChong23
worst code ever
well i noticed its coded in too much lines .. So y do u think its badly coded ( btw iam done with this Npc in better way)
07/29/2012, 10:50
#10
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by
shadowman123
well i noticed its coded in too much lines .. So y do u think its badly coded ( btw iam done with this Npc in better way)
The npc handler for that specific npc was done and released with the first version of my source, so you didnt do it in a 'better way'. The fact that he hard-coded the ids, and that does not mean that 'if there are lots of code then the code is bad', means he probably doesn't have any idea of how things can be done faster and nicer.
07/29/2012, 12:44
#11
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by
-impulse-
The npc handler for that specific npc was done and released with the first version of my source, so you didnt do it in a 'better way'. The fact that he hard-coded the ids, and that does not mean that 'if there are lots of code then the code is bad', means he probably doesn't have any idea of how things can be done faster and nicer.
Perfect thats Right Thx Alot for that
07/29/2012, 12:53
#12
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by
-impulse-
The npc handler for that specific npc was done and released with the first version of my source, so you didnt do it in a 'better way'. The fact that he hard-coded the ids, and that does not mean that 'if there are lots of code then the code is bad', means he probably doesn't have any idea of how things can be done faster and nicer.
Tho you can't disagree on that it's bad coded. It's pretty ineffecient.
07/29/2012, 15:39
#13
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
Code:
if (infos.BaseInformation.Level == PacketHandler.ItemMaxLevel(PacketHandler.ItemPosition(infos.BaseInformation.ID)))
{
dialog.Text("This item is already at maximum level!");
dialog.Link("Alright", 255);
dialog.Avatar(50);
dialog.Send();
return;
}
07/29/2012, 20:26
#14
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Quote:
Originally Posted by
-impulse-
The npc handler for that specific npc was done and released with the first version of my source, so you didnt do it in a 'better way'. The fact that he hard-coded the ids, and that does not mean that 'if there are lots of code then the code is bad', means he probably doesn't have any idea of how things can be done faster and nicer.
Actually, The very first version of your source didn't have any npcs coded.
Quote:
Originally Posted by
ChingChong23
worst code ever
That's a face I haven't seen in awhile.
07/29/2012, 21:01
#15
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
[QUOTE=_DreadNought_;17927756]Actually, The very first version of your source didn't have any npcs coded.
/QUOTE]
Well, obviously the first didnt, but the 5165 I released a while ago, which is the base of Trinity's source, had npcs - that's the source I was talking about.
Similar Threads
Hi I am confuse about this Weapon Master
03/24/2012 - CO2 Private Server - 2 Replies
all Items can be upgrade to their high level limit except the Bracelet, can not be upgrade the level upto lvl 132 to 137 from 127, I use the impulse one....
can someone check this out please?
case 7050:
{
switch (npcRequest.OptionID)
{
case 0:
{
...
Weapon MasteR
06/10/2010 - CO2 Private Server - 2 Replies
heLp me i get a eror .. in 5165
#region WeaponMaster
case 7050:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I can upgrade your items here for a DB each time. But remember for changes to take effect you need to click Finish when done."));
...
What must i have to be a good Server and not gonna fail
08/14/2008 - Conquer Online 2 - 2 Replies
Hey what requirements must a server have? i go make a server by
my own power:rolleyes: (yes i can code c#) but what requirements i must have
to make a good server? and im dont want to fail so give me some tips;) and
what u guys want in the private server? and what kind of private server you
want? you want a leveling or a pvp server ( yeah there will be tournaments in
Message To All Private Servers: You Need This To Not Gonna Fail!
08/10/2008 - Conquer Online 2 - 27 Replies
Hello me and other people are sick of the servers that are based on public sources and that are gonna fail after 24 hours! sometimes a little later!
when u gonna make a server first think about this!!!:
Requirements:
I can code?
I can make a good website?
I can make a good Forum?
I Tested the server a few months before i released it!
I can make a good registerpage?
I made a own Source!
+N Maths For Beginners
12/22/2006 - Conquer Online 2 - 3 Replies
Hey, i'm completely new to the idea of +Ning items, on my server i have just +5'd my coat, and im wondering if anyone has come up with a quick way to work out how many +Ns you need...?
Fankoos ^^
All times are GMT +2. The time now is 07:09 .