Jump to content
  • 0

VIP System not working


SamMee

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   4
  • Joined:  12/03/11
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   4
  • Joined:  12/03/11
  • Last Seen:  

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!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  106
  • Reputation:   28
  • Joined:  11/08/11
  • Last Seen:  

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 :).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...