@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
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.
@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
@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.
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
[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
--------------------------------------------------
[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
--------------------------------------------------
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.