Jump to content

Aksl

Members
  • Posts

    35
  • Joined

  • Last visited

Posts posted by Aksl

  1. *vip_status(<type>,{"<character name>"})

    Returns various information about a player's VIP status.

    Valid types:

     1 - VIP status. (1 if VIP, 0 if non-VIP)

     2 - VIP expire date. (timestamp string if VIP, 0 if non-VIP)

     3 - VIP time remaining. (timestamp string if VIP, 0 if non-VIP)

    NOTE: This command is only available if the VIP System is enabled.

    ---------------------------------------

    *vip_time <time>,{"<character name>"};

    Changes a player's VIP time (in minutes). A positive value will increase time, and a

    negative value will decrease time.

    NOTE: This command is only available if the VIP System is enabled.

     

  2. Hi, i have a simple debug in the console when i'm using this command :

     

     

    BUILDIN_FUNC(inv2stor)

    {
           TBL_PC * sd = ((script_hasdata(st,11)) ? map_id2sd(script_getnum(st,11)) : script_rid2sd(st));
            int i,ok;
           struct item_data* item_data;
            struct item tmp_it;
            int item_id = script_getnum(st,2);
            int item_nb = script_getnum(st,3);
            
            nullpo_ret(sd);
            
            if( (item_data = itemdb_exists(item_id)) != NULL ){
                tmp_it.nameid = item_data->nameid;
                tmp_it.identify = script_getnum(st,4);
                tmp_it.refine = script_getnum(st,5);
                tmp_it.attribute = script_getnum(st,6);            
                tmp_it.card[0] = script_getnum(st,7);
                tmp_it.card[1] = script_getnum(st,8);
                tmp_it.card[2] = script_getnum(st,9);
                tmp_it.card[3] = script_getnum(st,10);
                
                ARR_FIND( 0, MAX_INVENTORY, i, ((&sd->status.inventory != NULL)
                        && compare_item(&sd->status.inventory,&tmp_it,7) ));
                if( i < MAX_INVENTORY ){
                    ok=storage_storageadd(sd,i,item_nb);
                    script_pushint(st,ok);
                    storage_storageclose(sd);
                    return ok;
                }
            }
            script_pushint(st,-1);
            return 0;
    }

     

    Just a debug, no reason, nothing ..

     

    Someone could help me please ?

     

    Thanks 

  3. 
    

    map,x,y,pos script NameNPC skin,{

    if ( countitem(30000) ) {

    mes "Hey Brave adventurer, Seems that you have the requirements to enter the sacred cave.";

    mes "Would you like to go there ?";

    next;

    if ( select("Yes:No") == 1 ) {

    close2;

    warp "new_1-1",0,0;

    end;

    }

    else {

    mes "Bye !";

    close;

    }

    }

    else {

    mes "You don't have the requirements.";

    close;

    }

    }

    • Upvote 1
  4. Hello,

     

    I have a problem with the skill DONT FORGET ME.

     

    When i use this skill in a dungeon or in a city, the effect is applied to all the players all around.

    It should apply only to the enemy nevertheless!

     

    Have you a solution please ?

     

    Thanks in advance :)

     

     



    up please :(

×
×
  • Create New...