Jump to content

ganjaradio

Members
  • Posts

    538
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by ganjaradio

  1. thx lock it
  2. didnt mean this dude, although thx, i mean a text box when someone can type anything where he will type sth and when he clicks the button, then the variable will get the value of the text
  3. Hello, im trying to make a text box to add a char name inside and then a button that will set this name at a variable in HTML. How can i do that? (via java) Thx in advance
  4. Is it possible to edit the client like in Unreal Engine and the packets, add more UI tables and such? for example for Mentor System to add a new UI to show name etc? or for example ot add more keys to be used ingame?
  5. i think that this would work: L2PcInstance target = activeChar.getTarget(); L2PcInstance targeted = target.getTarget();
  6. its according to your project, you may find it in source - Experience.java or in Datapack experience.xml there there will be max level and the EXP needed for it
  7. Hello, im building a team for a new l2j server, if anyone is interested reply here or send me a pm for more info. Some basing info, the client will be Gracia Final - L2jserver
  8. Hello if you need any code/help about your server you can request here.
  9. ive added in storeCharBase, createDb and restore, i cant find Update inside l2pcinstance
  10. again the same error
  11. well its first time editing mysql via java :3 how can i fix it if possible :3
  12. Now the character is being created but getting this error and then wont enter game: https://imgur.com/a/uo1gF
  13. tried it again the same error in the same line
  14. the error is saying that there is a missing value for mysql
  15. First of all its l2jserver and not acis and its gracia final also the error (sry ive forgotten it) https://imgur.com/a/dIh1W
  16. its from pride pack, it was working, before adding the faction system
  17. btw the sql file: CREATE TABLE IF NOT EXISTS `characters` ( `account_name` VARCHAR(45) DEFAULT NULL, `charId` INT UNSIGNED NOT NULL DEFAULT 0, `char_name` VARCHAR(35) NOT NULL, `level` TINYINT UNSIGNED DEFAULT NULL, `maxHp` MEDIUMINT UNSIGNED DEFAULT NULL, `curHp` MEDIUMINT UNSIGNED DEFAULT NULL, `maxCp` MEDIUMINT UNSIGNED DEFAULT NULL, `curCp` MEDIUMINT UNSIGNED DEFAULT NULL, `maxMp` MEDIUMINT UNSIGNED DEFAULT NULL, `curMp` MEDIUMINT UNSIGNED DEFAULT NULL, `face` TINYINT UNSIGNED DEFAULT NULL, `hairStyle` TINYINT UNSIGNED DEFAULT NULL, `hairColor` TINYINT UNSIGNED DEFAULT NULL, `sex` TINYINT UNSIGNED DEFAULT NULL, `heading` MEDIUMINT DEFAULT NULL, `x` MEDIUMINT DEFAULT NULL, `y` MEDIUMINT DEFAULT NULL, `z` MEDIUMINT DEFAULT NULL, `exp` BIGINT UNSIGNED DEFAULT 0, `expBeforeDeath` BIGINT UNSIGNED DEFAULT 0, `sp` INT UNSIGNED NOT NULL DEFAULT 0, `karma` INT UNSIGNED DEFAULT NULL, `fame` MEDIUMINT UNSIGNED NOT NULL default 0, `pvpkills` SMALLINT UNSIGNED DEFAULT NULL, `pkkills` SMALLINT UNSIGNED DEFAULT NULL, `clanid` INT UNSIGNED DEFAULT NULL, `race` TINYINT UNSIGNED DEFAULT NULL, `classid` TINYINT UNSIGNED DEFAULT NULL, `base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0, `transform_id` SMALLINT UNSIGNED NOT NULL DEFAULT 0, `deletetime` BIGINT DEFAULT NULL, `cancraft` TINYINT UNSIGNED DEFAULT NULL, `title` VARCHAR(16) DEFAULT NULL, `rec_have` TINYINT UNSIGNED NOT NULL DEFAULT 0, `rec_left` TINYINT UNSIGNED NOT NULL DEFAULT 0, `accesslevel` MEDIUMINT DEFAULT 0, `online` TINYINT UNSIGNED DEFAULT NULL, `onlinetime` INT DEFAULT NULL, `char_slot` TINYINT UNSIGNED DEFAULT NULL, `newbie` MEDIUMINT UNSIGNED DEFAULT 1, `lastAccess` BIGINT UNSIGNED DEFAULT NULL, `clan_privs` MEDIUMINT UNSIGNED DEFAULT 0, `wantspeace` TINYINT UNSIGNED DEFAULT 0, `isin7sdungeon` TINYINT UNSIGNED NOT NULL default 0, `punish_level` TINYINT UNSIGNED NOT NULL DEFAULT 0, `punish_timer` INT UNSIGNED NOT NULL DEFAULT 0, `power_grade` TINYINT UNSIGNED DEFAULT NULL, `nobless` TINYINT UNSIGNED NOT NULL DEFAULT 0, `subpledge` SMALLINT NOT NULL DEFAULT 0, `last_recom_date` BIGINT UNSIGNED NOT NULL DEFAULT 0, `lvl_joined_academy` TINYINT UNSIGNED NOT NULL DEFAULT 0, `apprentice` INT UNSIGNED NOT NULL DEFAULT 0, `sponsor` INT UNSIGNED NOT NULL DEFAULT 0, `varka_ketra_ally` TINYINT NOT NULL DEFAULT 0, `clan_join_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0, `clan_create_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0, `death_penalty_level` SMALLINT UNSIGNED NOT NULL DEFAULT 0, `bookmarkslot` SMALLINT UNSIGNED NOT NULL DEFAULT 0, `factionid` SMALLINT UNSIGNED NOT NULL DEFAULT 0, `returnx` MEDIUMINT UNSIGNED NOT NULL DEFAULT 1, `returny` MEDIUMINT UNSIGNED NOT NULL DEFAULT 1, `returnz` MEDIUMINT UNSIGNED NOT NULL DEFAULT 1, PRIMARY KEY (`charId`), KEY `clanid` (`clanid`) ); l2pcinstance.java: http://www23.zippyshare.com/v/Gayilcc7/file.html
  18. Yes as SMALINT with default value 0
  19. Hello im getting error for line 140 on character create (newChar.setCurrentHp(template.baseHpMax + 400);) after adding a custom faction system CharacterCreate.java: https://pastebin.com/nBF57eMB Changes in L2PcInstance // Character Character SQL String Definitions: private static final String INSERT_CHARACTER = "INSERT INTO characters (account_name,charId,char_name,level,maxHp,curHp,maxCp,curCp,maxMp,curMp,face,hairStyle,hairColor,sex,exp,sp,karma,fame,pvpkills,pkkills,clanid,race,classid,deletetime,cancraft,title,accesslevel,online,isin7sdungeon,clan_privs,wantspeace,base_class,newbie,nobless,power_grade,last_recom_date,factionid, returnx, returny, returnz) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,face=?,hairStyle=?,hairColor=?,sex=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,fame=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,clanid=?,race=?,classid=?,deletetime=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,punish_level=?,punish_timer=?,newbie=?,nobless=?,power_grade=?,subpledge=?,last_recom_date=?,lvl_joined_academy=?,apprentice=?,sponsor=?,varka_ketra_ally=?,clan_join_expiry_time=?,clan_create_expiry_time=?,death_penalty_level=?,bookmarkslot=?,streak=?,lastKill1=?,lastKill2=?,vitality_points=?,heroWpnDel=?,cancraft=?, factionid=?,returnx=?, returny=?, returnz =? FROM characters WHERE charId=?"; private static final String RESTORE_CHARACTER = "SELECT account_name, charId, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, face, hairStyle, hairColor, sex, heading, x, y, z, exp, expBeforeDeath, sp, karma, fame, pvpkills, pkkills, clanid, race, classid, deletetime, cancraft, title, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, punish_level, punish_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level,bookmarkslot,streak,lastKill1,lastKill2,vitality_points,heroWpnDel,factionid, returnx, returny, returnz FROM characters WHERE charId=?"; // Faction System private int factionId; public int getFactionId() { return factionId; } public void setFactionId(int newFaction) { factionId = newFaction; } player.setVitalityPoints(rset.getInt("vitality_points"), true); player._heroWpnDelCount = rset.getByte("heroWpnDel"); +player.setFactionId(rset.getInt("factionid")); +player.setReturnX(rset.getInt("returnx")); +player.setReturnY(rset.getInt("returny")); +player.setReturnZ(rset.getInt("returnz")); statement.setInt(57, getObjectId()); +statement.setInt(58, getFactionId()); +statement.setInt(59, getReturnX()); +statement.setInt(60, getReturnY()); +statement.setInt(61, getReturnZ()); And i cant create the character, if possible ot help me, thx in advance!
  20. lock it found i guess
  21. Hello everyone. How can i make an instances that will last for ever and players will be able to be there all together?
  22. Hello, with a friend we are building a clan for the server -> http://l2solstice.com/ We already have 1 bishop an 1 tank. We are mostly in need of DDs and ofc some more support classes. For more info reply here, or send a pm (ill send you back our discord channel)
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock