|
You last visited: Today at 06:32
Advertisement
[FAQ] HellmouthSource
Discussion on [FAQ] HellmouthSource within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
03/11/2011, 16:49
|
#61
|
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
|
i changed the packet builder today and yuk
it happens that some ulongs went up from 8 bytes to 28 byte or im just miscounting ?
o_O and btw lots of missing bytes/uints in the the spawnchar packet lol
Quote:
WriteUInt32(1, 70, Packet);//quiz
WriteByte(3, 108, Packet);
|
|
|
|
03/11/2011, 17:37
|
#62
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
Quote:
Originally Posted by mohamedkhaled
@pro4never i would suggest to not release mobs classes or codes for any reason.
and 1 more question! i know well at C# but i didn't read the whole source yet .. but i tried to make npc that upgrades weapon level/quality but when i use something like this it don't upgrade the level.. didn't check the method also! xD
PHP Code:
Client.UpgradeEquipLevel(8);
but when i use
PHP Code:
Client.UpgradeEquipQuality(8);
the quality upgrades!
here
PHP Code:
HeadBand = 1 //level weapon 1 = 4 //level / quality weapon 2 = 5 //level / quality Armor = 3 //level Necklace = 2 //quality Ring = 6 //quality Boot = 8 //quality
Some of them accept level upgrade and some of them don't the same for the quality upgrade.
i don't know why did he released the source either.. if they want something i suggest to let them think and do it themselves i expected annoying will be the 1st thing he will get ..
|
Try using it via cmd to test it out first. There could be issues with upgrading but it should work just fine in my tests.
There is a uplevel cmd already added so double check with that and then try doing it with external scripts after
Quote:
Originally Posted by { Angelius }
i changed the packet builder today and yuk
it happens that some ulongs went up from 8 bytes to 28 byte or im just miscounting ?
o_O and btw lots of missing bytes/uints in the the spawnchar packet lol
|
When writing a ulong or anything it simply writes the value to those section of bytes. It doesn't effect any future writing.
To double check try doing...
byte[] Test = new byte[10];
WriteUInt32(value, 0, Test);
Test = Test;
Breakpoint the test = test line and then view the bytes it contains and you will see that you are only writing to the first 4 bytes.
And yes, There's lots of values I never filled in in heroinfo/entity spawn packet... most of which are just me not having added the corresponding system yet but I have them almost all written down somewhere.
IE: artifact item ID's and stuff.
|
|
|
03/11/2011, 17:45
|
#63
|
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
|
@pro4never i did a double check and still nothing i checked the database to see the position of the item (boot) and it was 8 tested with the cmd : /upgradelevel and nothing happened! and thanks for response
|
|
|
03/11/2011, 18:21
|
#64
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
Quote:
Originally Posted by mohamedkhaled
@pro4never i did a double check and still nothing i checked the database to see the position of the item (boot) and it was 8 tested with the cmd : /upgradelevel and nothing happened! and thanks for response
|
Try placing breakpoints in the upgrade code to see where it's hitting an issue and also double check you are high enough level to upgrade it.
It's not a very complicated system, just involves trying to manipulate item ids and then checking if it exists in the loaded itemtype the server uses.
if so it creates the new item.
|
|
|
03/11/2011, 18:41
|
#65
|
elite*gold: 0
Join Date: May 2009
Posts: 45
Received Thanks: 5
|
Thank you for your useful post !! i will try it. thanks again ^^
|
|
|
03/13/2011, 06:30
|
#66
|
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
|
I think down the road we need to write up a quick guide for the npc system in python. quick example would be Teleport(x,y,map,client) , Client.Level, Position x = x item
oh cool the variables in the npctalk are used for python xD
|
|
|
03/13/2011, 13:15
|
#67
|
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
|
so pro .
why do we have those checks on the new players jobs on char creation !
Quote:
if (Client.Job < 10|| Client.Job > 145)
return false;
|
does it throw any wrong jobs numbers !
@BioHazarxPaul
its already there lol it doesent need a guide on how to do that though
Quote:
def npc(Client, Option):
if(Option == 0):
Text("should i Teleport you bla bla ?")
Link("Yes", 1)
Link("Never mind", 255)
Finish()
if(Option == 1):
Teleport(xx, yy, mm, Client)
return 0
|
place it in any case number look in side the
|
|
|
03/13/2011, 14:21
|
#68
|
elite*gold: 0
Join Date: Apr 2009
Posts: 49
Received Thanks: 3
|
execute batch file.. : Erro . i use the Navicat 8
[Err] 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ENGINE=InnoDB AUTO_INCREMENT=1000010 DEFAULT CHARSET=latin1' at
[Err] CREATE TABLE `accounts` (
`UID` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(22) NOT NULL,
`password` varchar(22) NOT NULL,
`email` varchar(22) DEFAULT NULL,
`question` varchar(22) DEFAULT NULL,
`answer` varchar(22) DEFAULT NULL,
`idnumber` int(11) DEFAULT NULL,
`Permission` int(3) NOT NULL DEFAULT '1',
PRIMARY KEY (`UID`)
) ENGINE=InnoDB AUTO_INCREMENT=1000010 DEFAULT CHARSET=latin1;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
|
|
|
03/13/2011, 14:45
|
#69
|
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
|
Quote:
Originally Posted by porra0101
execute batch file.. : Erro . i use the Navicat 8
[Err] 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ENGINE=InnoDB AUTO_INCREMENT=1000010 DEFAULT CHARSET=latin1' at
[Err] CREATE TABLE `accounts` (
`UID` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(22) NOT NULL,
`password` varchar(22) NOT NULL,
`email` varchar(22) DEFAULT NULL,
`question` varchar(22) DEFAULT NULL,
`answer` varchar(22) DEFAULT NULL,
`idnumber` int(11) DEFAULT NULL,
`Permission` int(3) NOT NULL DEFAULT '1',
PRIMARY KEY (`UID`)
) ENGINE=InnoDB AUTO_INCREMENT=1000010 DEFAULT CHARSET=latin1;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
|
|
|
|
03/13/2011, 17:19
|
#70
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
As said in the original post you need innodb enabled. Appserver has an option to enable it during set up but no one on epvp seems to tick that option.
Or just install xampp.
Quote:
Originally Posted by { Angelius }
so pro .
why do we have those checks on the new players jobs on char creation !
does it throw any wrong jobs numbers !
@BioHazarxPaul
its already there lol it doesent need a guide on how to do that though
place it in any case number look in side the
|
It's to avoid hackers. Saint tested some stuff to see how much he could screw with with invalid packets (there's still LOTS of stuff in source). He managed to make an invalid character uid, invalid job and some other stuff. You NEED to check everything server side.
|
|
|
03/14/2011, 00:12
|
#71
|
elite*gold: 0
Join Date: Mar 2010
Posts: 12
Received Thanks: 0
|
Monster Dont Atack Me
tnx for you Pro4never
I coded the Monster But it not moving or attack chra can you help me pleas
here image
|
|
|
03/14/2011, 00:35
|
#72
|
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
|
what ports should i put in the loaderset? it says failed to connect to server
|
|
|
03/14/2011, 01:02
|
#73
|
elite*gold: 0
Join Date: Dec 2010
Posts: 1
Received Thanks: 0
|
I have a problem
My friends can't connected, they have hamachi
Please help me.
|
|
|
03/14/2011, 01:10
|
#74
|
elite*gold: 0
Join Date: Mar 2011
Posts: 2
Received Thanks: 0
|
heyy pro4never I want to bought yr full source plz tell me yr e-mail
|
|
|
03/14/2011, 01:42
|
#75
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
Quote:
Originally Posted by ahmedaboalia
tnx for you Pro4never
I coded the Monster But it not moving or attack chra can you help me pleas
here image
|
You have to code it from scratch. I never coded any monster AI at all in the source.
|
|
|
All times are GMT +2. The time now is 06:32.
|
|