Jump to content

Haruka Mayumi

Members
  • Posts

    485
  • Joined

  • Last visited

  • Days Won

    27

Posts posted by Haruka Mayumi

  1. this happens because there are data types that can make your variable loss some data..
    you must learn what are data types first and what are their scopes.. needless to say, the warning already told you the error.. a 'double' data type can store decimal number while an 'int' type can only store integers(whole number).. So with that in mind, you cannot convert '10.5' into an integer because if you do so, it will result into a whole number '10' leaving the '.5' behind which will cause a loss of data..
    to fix things like this.. you simply need to make sure that you are passing a data to it's correct data type..

    • Like 1
  2. You might be using another vps for your web. and the account you are using for is permitted for localhost only as it says 'admin@localhost'..
    make sure that your account is either permitted to your web IP(51.51.51.51) or make the account permitted to all ip ( % ). also don't bind the mysql to localhost. you can add another bind for your webhost.

  3. I voted yes! but when it comes to general demand for such function?. I guess NO.. I mean you will snip a screen shot from some RO and you will upload it for the search.. the user might snip the npc on awkward angle and would make it harder for you.. Also, search by image is not something you would use most of the time.

  4. // Limits for the monster database
    #define MIN_MOB_DB 1000
    #define MAX_MOB_DB 3999
    #define MIN_MOB_DB2 20020
    #define MAX_MOB_DB2 31999

    Also, Don't use the same name.. 
    it should be like this

    Body:
      - Mob: TURTLE_GENERAL_HARD
        Sprite: TURTLE_GENERAL
    20020,TURTLE_GENERAL_HARD,Turtle General,Turtle General,

     

    • Upvote 1
  5. OnClock1900:
        .@map$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
        .@mins = .sleep / 60000;
        announce "[World Boss] A World Boss will appear in " + .@mins + " minutes", bc_all, 0xFF0000;
        sleep .sleep;
        monster .@map$, 153, 175, "Devils Pet", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
        announce "[World Boss] A World Boss appeared in " + .@map$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
        end;
        
    OnWBossDied:
        announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
        for(.@i=0;.@i<getarraysize(.rewardId);.@i++)
            getitem .rewardId[.@i], .rewardCount[.@i];
        end;
        
    OnInit:
        setarray .townMap$[0],"prontera","geffen";
        .wBossId = 1931;        // monsterID
        setarray .rewardId[0],7828,501,502,503;        // reward ID
        setarray .rewardCount[0],50,1,2,3;        		// how many rewards
        .sleep = 60000;         // 60000ms = 1min
        end;

     

  6. 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
  7. 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
    +	}
  8. 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
  9. 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
  10. 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;
     	}
     }

     

×
×
  • Create New...