User problem vip

Results 1 to 4 of 4
  1. #1
    Enthusiast erikgaston is offline
    MemberRank
    Jul 2015 Join Date
    35Posts

    idea User problem vip

    Hi folks, I'm having a problem

    Which have vip 0, I take it like this in the Lorencia mapavip (stadium).

    I'm trying to do by the source, but something is missing me.
    actually I'm missing a lot, but what I started to do alone.

    Code:
    MuOnlineQuery.ExecQuery("SELECT VIP, VIP_DATE FROM MEMB_INFO WHERE AccountID = '%s'",Vip.Config.Column,Vip.Config.ColumnDate,gObj->AccountID);    
       MuOnlineQuery.Fetch();
        AddTab[gObj->m_Index].VIP_Type    = Me_MuOnlineQuery.GetAsInteger(Vip.Config.Column);
        AddTab[gObj->m_Index].VIP_Min    = Me_MuOnlineQuery.GetAsInteger(Vip.Config.ColumnDate);
        MuOnlineQuery.Close();
        //Chat.Message(1,gObj,"cantdad %d - %d",AddTab[gObj->m_Index].VIP_Type,AddTab[gObj->m_Index].VIP_Min);
        if(AddTab[gObj->m_Index].VIP_Type==0){
            if(gObj->MapNumber==6){
            gObjTeleport(gObj->m_Index, 0,135,128);
                }
        
            }
    Last edited by erikgaston; 11-11-15 at 07:51 AM.


  2. #2

    Re: User problem vip

    Hmm well your source doesnt look like complete as i see
    why dont u use an existing one from IA Julia sources for example?
    Code:
    Me_MuOnlineQuery.CheckColumn(Config.Column, "MEMB_INFO", "ALTER TABLE MEMB_INFO ADD [%s][int] DEFAULT (0) NOT NULL", Config.Column);
    Me_MuOnlineQuery.CheckColumn(Config.ColumnDate, "MEMB_INFO", "ALTER TABLE MEMB_INFO ADD [%s][int] DEFAULT (0) NOT NULL", Config.ColumnDate);
    Me_MuOnlineQuery.CheckColumn("VIP_ONOFF", "MEMB_INFO", "ALTER TABLE MEMB_INFO ADD [VIP_ONOFF][int] DEFAULT (1) NOT NULL");
    
        Config.NumStates = Configs.GetInt(0, 10, 3, "VipSystem", "NumStates", IAJuliaVIP);
        Config.AllowRebuying = Configs.GetInt(0, 1, 0, "VipSystem", "AllowRebuying", IAJuliaVIP);
    
        char PState[10];
    
        for(int i = 1; i <= Config.NumStates; i++)
        {
            wsprintf(PState, "State%d", i);
    
            Config.VIPState[i].MinHours = Configs.GetInt(0, 32000, 1, PState, "MinHours", IAJuliaVIP);
            Config.VIPState[i].MaxHours = Configs.GetInt(Config.VIPState[i].MinHours, 32000, 200, PState, "MaxHours", IAJuliaVIP);
            Config.VIPState[i].EnableOnOff = Configs.GetInt(0, 1, 1, PState, "EnableOnOff", IAJuliaVIP);
        }
    
        Log.ConsoleOutPut(1, c_Yellow, t_Default, "[û] [Vip System]\tState Loaded.");
        if(AddTab[gObj->m_Index].VIP_Type==0){
            if(gObj->MapNumber==6){
            gObjTeleport(gObj->m_Index, 0,135,128);
                }
    Last edited by KarLi; 11-11-15 at 12:05 PM.

  3. #3
    Enthusiast erikgaston is offline
    MemberRank
    Jul 2015 Join Date
    35Posts

    Re: User problem vip

    Quote Originally Posted by KarLi View Post
    Hmm well your source doesnt look like complete as i see
    why dont u use an existing one from IA Julia sources for example?
    Code:
    Me_MuOnlineQuery.CheckColumn(Config.Column, "MEMB_INFO", "ALTER TABLE MEMB_INFO ADD [%s][int] DEFAULT (0) NOT NULL", Config.Column);
    Me_MuOnlineQuery.CheckColumn(Config.ColumnDate, "MEMB_INFO", "ALTER TABLE MEMB_INFO ADD [%s][int] DEFAULT (0) NOT NULL", Config.ColumnDate);
    Me_MuOnlineQuery.CheckColumn("VIP_ONOFF", "MEMB_INFO", "ALTER TABLE MEMB_INFO ADD [VIP_ONOFF][int] DEFAULT (1) NOT NULL");
    
        Config.NumStates = Configs.GetInt(0, 10, 3, "VipSystem", "NumStates", IAJuliaVIP);
        Config.AllowRebuying = Configs.GetInt(0, 1, 0, "VipSystem", "AllowRebuying", IAJuliaVIP);
    
        char PState[10];
    
        for(int i = 1; i <= Config.NumStates; i++)
        {
            wsprintf(PState, "State%d", i);
    
            Config.VIPState[i].MinHours = Configs.GetInt(0, 32000, 1, PState, "MinHours", IAJuliaVIP);
            Config.VIPState[i].MaxHours = Configs.GetInt(Config.VIPState[i].MinHours, 32000, 200, PState, "MaxHours", IAJuliaVIP);
            Config.VIPState[i].EnableOnOff = Configs.GetInt(0, 1, 1, PState, "EnableOnOff", IAJuliaVIP);
        }
    
        Log.ConsoleOutPut(1, c_Yellow, t_Default, "[û] [Vip System]\tState Loaded.");
        if(AddTab[gObj->m_Index].VIP_Type==0){
            if(gObj->MapNumber==6){
            gObjTeleport(gObj->m_Index, 0,135,128);
                }
    That's wrong.
    The load method does not accept (LPOBJ gObj).
    I have to create a new method with that functionality.
    my problem is I'm doing wrong, because I'm trying to take the values 1 or 0 of the VIP table and not take it.
    -1 gives me courage.

  4. #4

    Re: User problem vip

    Well you know i am not a coder just trying to find solutions. also your Inbox pm is full so

    Quote Originally Posted by erikgaston
    karli, I'm using the files ia julia.
    but they are not the same as posting Th3AnG3L.
    I'm using those ulfsark.
    but I can not balance the races well.
    I saw the calccharacter of th3ang3l and is different from ulfsark.
    Would you give me a recommendation?
    if I use those ulfsark or of th3ang3l?
    are different sources?
    I am not that good with sources, i remmebr my partner had old version of ia julia and sources and modified
    but i dont know why u cant balance? wrong configs? maybe ask also th3ang3l?



Advertisement