Jump to content

Haruka Mayumi

Members
  • Posts

    477
  • Joined

  • Last visited

  • Days Won

    27

Posts posted by Haruka Mayumi

  1. This is the problem for instant job scripts that they forgot(or possibly don't know) to set jobchange_level/jobchange_level_3rd.. leaving them to 1 when their job is changed.

    there's a player variable which are call "jobchange_level" for 2nd job tree, and "jobchange_level_3rd" for 3rd job tree. you will set them if you are using an instant job script.. 
    to force the players use their 1st job points to 1st job tree only.. you must set their jobchange_level to their job level when they change into a 2nd job...

    Sample would be you instant job from Novice to Lord Knight 99/70.. you must set jobchange_level to 50 if you want to force 49 points to your Swordsman Tree.. 
    another example would be Novice to Rune Knight.. you will set the jobchange_level to 50 and you must also set the jobchange_level_3rd to 70 which is the max job level of the lord knight.

    • Love 1
  2. Just now, Cookie-rae said:

    i already update in my git.

    The problem for this one is you also don't allow vip characters to login since the group id for VIP is 5.. This can be bypass by the gm too if you enable the move character from the char config..

    +		/*One character GM Account [Cookie]
    +		*Character Select GM Account Restriction.
    +		*/
    +		if( slot != 0 && sd->group_id > 2 ){ 
    +		chclif_reject(fd, 0); // rejected from server
    +		}
    +

    For the one below, there are GM accounts below group id 10 which are 2 = Support, 3 = Script Manager(although they can be configure).. Admin account is 99.. Vip account is 5.

    +	//GM Account Restriction 1 Slot only [Cookie]
    +	if( slot != 0 && sd->group_id > 10 ){ // change 10 to minimum gm level
    +		return -2; // character account limit exceeded
    +	}
  3. Just now, kalabasa said:

    ah i probably did not read carefuly heh wil try that also on my some other time thank you also!

    No problem.. just a reminder that if you are using cookie-rae diff.. you will most likely encounter the bug wherein VIP accounts would not be able to login any character greater than first slot which is kind of worse than the bug of the previous source modification.. They would be able to create another character if the move character is enabled, they will simply move the first slot character and then create another character on first slot.. 

    • Love 1
  4. That modification has a bug wherein once you became a vip.. you are not also allowed to create characters more than 1.
    This modification fix that bug.

    	// check the number of already existing chars in this account
    	if( SQL_ERROR == Sql_Query(sql_handle, "SELECT 1 FROM `%s` WHERE `account_id` = '%d'", schema_config.char_db, sd->account_id) )
    		Sql_ShowDebug(sql_handle);
    +	if( sd->group_id != 5 && sd->group_id > 0 && sd->group_id < 99 && Sql_NumRows(sql_handle) >= 1 )
    +		return -2; // character account limit exceeded
    #ifdef VIP_ENABLE
    	if( Sql_NumRows(sql_handle) >= MAX_CHARS )
    		return -2; // character account limit exceeded
    • Upvote 1
    • MVP 1
  5. add "break" on your case.

    -	cashshop	Usables Shop	-1,14003:15,12902:100
    -	cashshop	Costumes Shop	-1,20404:1000,20459:1000,31057:1000,31062:1000,31178:1000,31199:1000
    
     payon,171,142,4	script	Cash Shop	874,{
     	switch(select("Usables:Costumes:Cancel")) {
     		case 1:
     			callshop "Usables Shop", 1;
    			break;
     		case 2:
    			callshop "Costumes Shop", 1;
    			break;
     		case 3:
     			close;
     	}
     }

     

  6. prontera,166,190,4	script	Pre-Register Rewards	510,{
    if( !#Freebiesa313 && getcharid(3) < 2000275 ){//<<<< THIS ONE TOO
    set #Freebiesa313,1;
    mes "Welcome to Arrival RO. Please Take your rewards.";
    	getitembound 12411,2,Bound_Account;
    	getitembound 12264,2,Bound_Account;
    	getitembound 50002,1,Bound_Account;
    }
    
    else	{
    mes "You either have claimed your reward or didn't participate in Pre register Event";
    }
    close;
    }	
  7. Using logical operator AND (&&) instead of OR (||) for this code.

    AND && Operator

    Spoiler

    TRUE && TRUE = TRUE
    TRUE && FALSE = FALSE
    FALSE && TRUE = FALSE
    FALSE && FALSE = FALSE

    OR || Operator:

    Spoiler

    TRUE || TRUE = TRUE
    TRUE || FALSE = TRUE
    FALSE || TRUE = TRUE
    FALSE || FALSE = FALSE


    if (countitem(7060) < 1 && Zeny < 3000) 

    if both are true. it will do the bracket of the IF statement. if any is false. it will skip the bracket

    • MVP 1
  8. 4 possible problem..

    1. the most common sense is it was really unknown account and was not on your db..
    2. your server gepard_shield.conf is off, but your client side is enabled. or vice versa, gepard_shield.conf is on but client side is disabled.
    3. client doesn't have all the files related to gepard such as mss32.dll, msvcp and msvcr sent by functor..
    4. maybe it was not functor you contact?

    • Upvote 1
×
×
  • Create New...