How to auto give new players premium, stats, mapcodes etc

Page 1 of 3 123 LastLast
Results 1 to 25 of 66
  1. #1
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    How to auto give new players premium, stats, mapcodes etc

    There are several different ways of giving mapcodes, stats, alz and other things but all require several individual edits. There is a much much easier way but i have not seen anybody share it yet so here you are.

    Most people know you can make all new accounts premium my editing the cabal_tool_registeraccount stored procedure in the account database but in case you don't look for this line in the stored procedure...

    Code:
    values(@UserNum, 0, DATEADD(day, 100 , getdate()), 0)
    The red number is the account type. 0 is a free account and 1 is charged (premium). The blue number is the expiry date (the dateadd function is adding 100 days to today's date). Simply change the 0 to 1 to make all new chars premium and change the 100 if you want them to have more than 100 days of prem.

    Here are the prem types from SAUR0N's client synch patch:


    I have squashed the columns up a bit to get it all in but the actual column titles (in left to right order) are:

    [DurationSvc] = The row index. This always starts at 0 and increments by values of 1.
    DurationSvcIdx = The premium ServiceIdx number
    Type = Not completely sure. I *think* 0 means premium expires by expiry date and 1 uses the PayMinutes values and counts down the minutes until expiry.
    Exp = Bonus EXP
    SklExp = Bonus Skill EXP
    Drop = Bonus droprate
    Craft = Bonus craft EXP
    CraftSuccess = Bonus craft success
    Inventory = Extra inventory tab
    Warehouse = Extra warehouse tab
    Str = Bonus STR
    Dex = Bonus DEX
    Int = Bonus INT
    Attk = Bonus Attack
    MgAttk = Bonus Magic Attack
    AR = Bonus Attack Rate
    DR = Bonus Defense rate
    Defense = Bonus DEF
    MoveSpeed = Bonus move speed
    SP = Bonus EXP
    UseSP = Not sure
    BombAlz = Bonus Alz bomb rate
    Inventory2 = 2nd extra inventory tab
    Warehouse2 = 2nd extra warehouse tab
    dummy = Use of training dummies

    So, from this you can tell that a DurationSvcIdx of 1 gives you an extra 25% to all exp and drop rates and 200% Alz bomb but no training dummies. DurationSvcIdx of 2 give you the same, but Skill EXP is at 50%, you get 2 extra inventory tabs, 1 extra warehouse tab and access to training dummies.

    Now comes the interesting bit. Execute the following statement in the account database and then try making a new char, it should be level 150 with a full mithril set and lots of points to add.

    Code:
    update cabal_newflagdata_table set chardataidx=8, etcdataidx=8 where channel=25
    All very interesting, but why does it do that? To find out you need to look at some other tables in the account database...



    cabal_character_count_table is the first place to look. Find an existing userid on your server and check the server idx, don't assume the server idx will be 24 like your configs.



    If i look through cabal_newflagdata_table i can see my channel number has a chardataidx and an etcdataidx of 8 (we just changed this to 8 from 10). These 2 values are important as it tells the server what set of new character stats/equips etc. to use when creating new chars.



    This table (cabal_newchardata_table for those that can't read title bars) holds the default stats, alz, mapcodes and a whole bunch of other stuff that gets used for new chars. Inventory, equips, quest data and some other stuff can be found in cabal_newetcdata. We have just told the server to use set 8 which you can see are not noobie stats, it was using 10 before just below the area i hilighted which are the normal new char stats.

    If you look through these tables you will see that there are several different configurations. You can even mix and match the 2 values to use combinations of newchardata and newetcdata. You can even modify the sets using the info in darkxl's sticky to suit your own server, or even have multiple sets to have different new char data for high and low rate servers.

    Warning: Most of the higher sets here have the equips already equipped but your stats aren't actually high enough to wear them as all of your points are unassigned. This does cause errors in the server logs and i have not done much testing for problems if you don't assign your stats high enough for the equips, but if you raise the stats straight away it should be fine. Obviously the better way is to alter the stats in the cabal_newchardata_table to match the kit the chars will be wearing though ;)
    Last edited by chumpywumpy; 28-06-09 at 12:59 PM. Reason: Corrected some info and added some extra bits


  2. #2
    Akaruz - The Legend [hidden] is offline
    MemberRank
    Jun 2006 Join Date
    ClassifiedLocation
    1,120Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    very nice and useful guide for everyone. thanks chump ;)

  3. #3
    Account Upgraded | Title Enabled! dordort is offline
    MemberRank
    Nov 2004 Join Date
    IsraelLocation
    635Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Very usefull, thanks. =]

  4. #4
    Member Terbee is offline
    MemberRank
    Aug 2008 Join Date
    78Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    this guide rocks.. good job sir chumpy...^^

  5. #5
    Account Upgraded | Title Enabled! maggieta2 is offline
    MemberRank
    Jun 2006 Join Date
    cqwcqcwLocation
    211Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Wowwww!!! goood aport THANKSSSSSSSSSSSSSSSS!!!

  6. #6
    Apprentice hayward is offline
    MemberRank
    Oct 2007 Join Date
    9Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    thanks for this good guide. And what statement I should do to disable that function?

  7. #7
    searching... chacina is offline
    MemberRank
    Jan 2005 Join Date
    wwwLocation
    272Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    hi nice guide... just tip...
    type
    Code:
    0 = normal player
    1 = charged/premium state
    2 = Free time (everyday PM 21~22)/old style not f2p
    3~? = is same type 1
    here u set premium type
    servicekind
    server: etc/cabal/data/const.scp
    Code:
    [DurationSvc]	DurationSvcIdx	Type	Exp	SklExp	Drop	Craft	CraftSuccess	Inventory	Warehouse	Str	Dex	Int	Attk	MgAttk	AR	DR	Defense	MoveSpeed	SP	UseSP	BombAlz	Inventory2	Warehouse2	dummy
    0	0	0	25	25	25	25	0	0	0	0	0	0	0	0	0	0	0	0	0	0	200	0	0	0
    1	1	0	0	0	0	25	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    2	2	0	25	0	0	0	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    3	3	0	0	0	25	0	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    4	4	0	0	25	0	0	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    5	5	0	25	25	25	25	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	1
    6	6	0	0	0	0	0	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    7	7	0	0	25	0	0	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	1
    8	8	0	50	50	50	50	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
    ps: u dont use chinese client... u need sync server side for u client...

  8. #8
    Alpha Member terzo is offline
    MemberRank
    Sep 2007 Join Date
    BrazilLocation
    1,608Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    i love the procedures and db ++
    Nice release

  9. #9
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    for those who still don't get it.

    this is editing the character templates. every time you create a hero... it will go to this and read from it.

  10. #10
    Apprentice q1q1we is offline
    MemberRank
    Jul 2008 Join Date
    Land Below The Wind....Location
    21Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Thank ^^

  11. #11
    Mahna Mahna...m MuP is offline
    MemberRank
    Aug 2008 Join Date
    344Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Or use to edit all existent accounts to give premium :
    update cabal_charge_auth set Type=5

  12. #12
    Apprentice Vorianth is offline
    MemberRank
    Jul 2008 Join Date
    17Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    wut i done this thing and create character and see for yourself LOL :P




    i only edited to add ALZ and maps and see what hapened ;/





    OK FIXED !!!
    i use 1 ;/ and now it's 10 and working

  13. #13
    Valued Member jaeker1 is offline
    MemberRank
    Oct 2005 Join Date
    fsdfsdfsdfLocation
    103Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Thank ^ ^
    give some item for new character ^ ^

  14. #14
    Account Upgraded | Title Enabled! netlink is offline
    MemberRank
    Feb 2007 Join Date
    632Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    what is the exact number for char that is level 1 with all map enable and warp with some items.

  15. #15
    Account Upgraded | Title Enabled! Advocate is offline
    MemberRank
    Jun 2006 Join Date
    Perfect World - Yaoshous the AwakeningLocation
    1,453Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    how do i revert back to defualt becuase i used this querry and don't like the idea players being level 150 with all this stuff update cabal_newflagdata_table set chardataidx=8, etcdataidx=8 where channel=25

  16. #16
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Use the same query, but set chardataidx and etcdataidx back to 10.

  17. #17
    Member Musee is offline
    MemberRank
    Jan 2006 Join Date
    philippinesLocation
    69Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    sir need help with this

  18. #18
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.

  19. #19
    Go go go! Cath22 is offline
    MemberRank
    Aug 2008 Join Date
    Cabal-ArenaLocation
    713Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    sir how to add pets on signup?

  20. #20
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.

  21. #21
    Account Upgraded | Title Enabled! Advocate is offline
    MemberRank
    Jun 2006 Join Date
    Perfect World - Yaoshous the AwakeningLocation
    1,453Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Quote Originally Posted by jaeker1 View Post
    Thank ^ ^
    give some item for new character ^ ^
    im interested in how hdid this sorry for sounded dumb but kind of lost on how he was able to add certain things

  22. #22
    The Dinosaur chumpywumpy is offline
    MemberRank
    Jun 2008 Join Date
    /f451/Location
    5,127Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Make a new char with the basic kit you want to add, then copy the equip and inventory values into the entries in the newEtcData_table for that class and dataidx.

  23. #23
    Account Upgraded | Title Enabled! Advocate is offline
    MemberRank
    Jun 2006 Join Date
    Perfect World - Yaoshous the AwakeningLocation
    1,453Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    im still unable to understand properly how do i modify what is giving the character data after i created new character and gave the starting items to him i check in db but his inventory is binary how am i supose to tell it hey new characters gonna get this?
    binary data i want each new character to have in there inventory is
    Code:
    0x050000000000630000000400000000F8080000000000630000000500000000F80C0000000000630000000600000000F8D00102000010000000000800000000F8B30302000010000000000C00000000F8190500000000000000000E00000000F8F50400000000630000000700000000F8
    but i fail to see how to get this done.
    Last edited by Advocate; 15-11-08 at 01:11 AM.

  24. #24
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.

  25. #25
    Account Upgraded | Title Enabled! Advocate is offline
    MemberRank
    Jun 2006 Join Date
    Perfect World - Yaoshous the AwakeningLocation
    1,453Posts

    Re: How to auto give new players premium, stats, mapcodes etc

    Quote Originally Posted by cypher View Post
    How hard can it be: add all your items u want to a character, get his inventory data and then just edit the new flag data. Is it that hard? gezzz
    my god man how you became a mod? but anyway if the data binary was curious on how to edit it is all there is no need for hostilities to me or anyoe else in this forum i been reading this forum and fail to see any type in depth guide on how to change things like this.



Page 1 of 3 123 LastLast

Advertisement