[FAQ] HellmouthSource

03/11/2011 16:49 { Angelius }#61
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 pro4never#62
Quote:
Originally Posted by mohamedkhaled View Post
@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 //level
weapon 1 //level / quality
weapon 2 //level / quality
Armor //level
Necklace //quality
Ring //quality
Boot //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 } View Post
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 mohamedkhaled#63
@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 pro4never#64
Quote:
Originally Posted by mohamedkhaled View Post
@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 mohamedkhaled#65
Thank you for your useful post !! i will try it. thanks again ^^
03/13/2011 06:30 BioHazarxPaul#66
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 { Angelius }#67
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 porra0101#68
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 { Angelius }#69
Quote:
Originally Posted by porra0101 View Post
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
--------------------------------------------------
[Only registered and activated users can see links. Click Here To Register...]
03/13/2011 17:19 pro4never#70
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 } View Post
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 ahmedaboalia#71
tnx for you Pro4never

I coded the Monster But it not moving or attack chra can you help me pleas

here image

[Only registered and activated users can see links. Click Here To Register...]
03/14/2011 00:35 [GM]#72
what ports should i put in the loaderset? it says failed to connect to server
03/14/2011 01:02 Tsushi#73
I have a problem
My friends can't connected, they have hamachi :(
Please help me.
03/14/2011 01:10 qwesz2#74
heyy pro4never I want to bought yr full source plz tell me yr e-mail
03/14/2011 01:42 pro4never#75
Quote:
Originally Posted by ahmedaboalia View Post
tnx for you Pro4never

I coded the Monster But it not moving or attack chra can you help me pleas

here image

[Only registered and activated users can see links. Click Here To Register...]
You have to code it from scratch. I never coded any monster AI at all in the source.