Jump to content

SamMee

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by SamMee

  1. You already posted in this topic yesterday, and there's already a bug report (Issue:#498) on Github about this issue.

    There's probably already someone working on this :).

     

    Fix Bug Vip System

    fix scr files 'scr/char/char_mapif.c'

    Find or Go To Line '737'

            if (operation == 2) {
                timediff = RFIFOL(fd, 32);
                val1 = RFIFOL(fd, 36);
            } else if (operation == 7)
                sex = RFIFOB(fd, 32);
            RFIFOSKIP(fd,44);

    Replace

            if (operation == 2) {
                timediff = RFIFOL(fd, 32);
                val1 = RFIFOL(fd, 36);
            } else if (operation == 6){
                timediff = RFIFOL(fd, 32);
                val1 = RFIFOL(fd, 36);
            } else if (operation == 7)
                sex = RFIFOB(fd, 32);
            RFIFOSKIP(fd,44);

    Save and recompile

    Fix VIP System is Working!!

  2. Fix Bug Vip System

    fix scr files 'scr/char/char_mapif.c'

    Find or Go To Line '737'

            if (operation == 2) {
                timediff = RFIFOL(fd, 32);
                val1 = RFIFOL(fd, 36);
            } else if (operation == 7)
                sex = RFIFOB(fd, 32);
            RFIFOSKIP(fd,44);

    Replace

            if (operation == 2) {
                timediff = RFIFOL(fd, 32);
                val1 = RFIFOL(fd, 36);
            } else if (operation == 6){
                timediff = RFIFOL(fd, 32);
                val1 = RFIFOL(fd, 36);
            } else if (operation == 7)
                sex = RFIFOB(fd, 32);
            RFIFOSKIP(fd,44);

    Save and recompile

    Fix VIP System is Working!!

    • Upvote 1
  3. Step 1

    updatenow.jpg

    Update GIT

     

    Next Step 2:

    configVIP.jpg

    config enable VIP System

     

    Next Step 3:

    Compiling_server.jpg

    Compiling server

     

    Next Step 4:

    insertID.jpg

    insert ID 'darksam3' on phpmyadmin

     

    Next Step 5:

    testID.jpg

    Test ID 'darksam3'

     

    Next Step 6:

    selectchar.jpg

     

    Next Step 7:

    charonmap.jpg

     

    Next Step 8:

    npc1.jpg

     

    Next Step 9:

    npc2.jpg

     

    Next Step 10:

    checkstoeg.jpg

     

    Next Step 11:

    relogin.jpg

    relogin

     

    Next Step 12:

    sqlchangegroupid.jpg

    after relogin Server change group_id in SQL to is 0 and vip_time is 0

    Code NPC For Test VIP System
    new_1-1,53,117,3    script    VIP    90,{
    
    if (vip_status(1)) { mes "VIP";} else { mes "non-VIP";}
    mes "VIP Status : " + vip_status(1);
    mes "VIP Expire : " + vip_status(2);
    mes "VIP Time Remaining : " + vip_status(3);
    atcommand "@vip +1d/j "+strcharinfo(0)+"";
    next;
    if (vip_status(1)) { mes "VIP";} else { mes "non-VIP";}
    close2;
    openstorage;
    end;
    
    }

    VIP System is not working now!!!!!!!

    • Upvote 1
  4. I use ExtendedVendingSystem_1.9.3_r12836.diff

     

    clif.c: In function ‘clif_parse_NPCMarketPurchase’:
    clif.c:1974:9: warning: unused variable ‘cmd’ [-Wunused-variable]
      uint16 cmd = RFIFOW(fd,0), len = 0, i = 0;
             ^
    clif.c: In function ‘clif_parse_OpenVending’:
    clif.c:12722:43: error: ‘struct map_session_data’ has no member named ‘vend_loot’
      struct item_data *item = itemdb_exists(sd->vend_loot);
                                               ^
    clif.c:12730:76: error: ‘struct map_session_data’ has no member named ‘vend_loot’
      if(battle_config.extended_vending && battle_config.show_item_vending && sd->vend_loot){
                                                                                ^
    clif.c:12761:76: error: ‘struct map_session_data’ has no member named ‘vend_loot’
      if(battle_config.extended_vending && battle_config.show_item_vending && sd->vend_loot)
                                                                                ^
     

  5.  

    The server's is not save the VIP TIME on MySql, its a source bug?

     

     

    VIP system is not working right now.

     

    Server source bug!!!!!...

     

    try update your git... its working on me.

     

     

     

    Step 1

    updatenow.jpg

    Update GIT

     

    Next Step 2:

    configVIP.jpg

    config enable VIP System

     

    Next Step 3:

    Compiling_server.jpg

    Compiling server

     

    Next Step 4:

    insertID.jpg

    insert ID 'darksam3' on phpmyadmin

     

    Next Step 5:

    testID.jpg

    Test ID 'darksam3'

     

    Next Step 6:

    selectchar.jpg

     

    Next Step 7:

    charonmap.jpg

     

    Next Step 8:

    npc1.jpg

     

    Next Step 9:

    npc2.jpg

     

    Next Step 10:

    checkstoeg.jpg

     

    Next Step 11:

    relogin.jpg

    relogin

     

    Next Step 12:

    sqlchangegroupid.jpg

    after relogin Server change group_id in SQL to is 0 and vip_time is 0

     

    Code NPC For Test VIP System

    new_1-1,53,117,3	script	VIP	90,{
    
    if (vip_status(1)) { mes "VIP";} else { mes "non-VIP";}
    mes "VIP Status : " + vip_status(1);
    mes "VIP Expire : " + vip_status(2);
    mes "VIP Time Remaining : " + vip_status(3);
    atcommand "@vip +1d/j "+strcharinfo(0)+"";
    next;
    if (vip_status(1)) { mes "VIP";} else { mes "non-VIP";}
    close2;
    openstorage;
    end;
    
    }
    

    VIP System is not working now!!!!!!!

    • Upvote 1
×
×
  • Create New...