Call a Table [shop.gold] to a Job

Results 1 to 7 of 7
  1. #1
    Enthusiast x0814328 is offline
    MemberRank
    Aug 2009 Join Date
    32Posts

    Call a Table [shop.gold] to a Job

    Hi
    I have a Job, that makes each time a player gain a Master Reset he gains 1000golds but I can't call the table [Shop.gold] to my job.

    My [Shop.gold] have this columns:

    Code:
    memb__id
    gold
    My JOB:

    Code:
    UPDATE Character
    Set MasterReset=MasterReset+1 
    From Character Join Memb_Stat on Character.Accountid=Memb_Stat.memb___id
    collate Latin1_general_CI_AS
    WHERE Resets=100 AND Memb_Stat.ConnectStat = 0 and CtlCode=0 and MasterReset=0

    I need to give 1000 golds for each player to reach the 100 reset.

    Please somebody help me


  2. #2
    Gamma DragonSeth is offline
    MemberRank
    Aug 2011 Join Date
    2,996Posts

    Re: Call a Table [shop.gold] to a Job

    Gold credits or zen?? im confuse

  3. #3
    Enthusiast x0814328 is offline
    MemberRank
    Aug 2009 Join Date
    32Posts

    Re: Call a Table [shop.gold] to a Job

    Gold credits

  4. #4
    Enthusiast x0814328 is offline
    MemberRank
    Aug 2009 Join Date
    32Posts

    Re: Call a Table [shop.gold] to a Job

    Please somebody help me ... I search on google but I can't resolve this problem alone because I dont understand SQL a lot.

  5. #5
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    Re: Call a Table [shop.gold] to a Job

    Select & decleare @account 4 insert credits ?

    Btw use collate database default if you have conflict in join querys.

  6. #6
    Enthusiast x0814328 is offline
    MemberRank
    Aug 2009 Join Date
    32Posts

    Re: Call a Table [shop.gold] to a Job

    I just want to give 1000 credits for each player to reach the 100 reset but I dont want to put all accounts...

    I want a thing like this (using my job)

    Code:
    UPDATE Character
    Set MasterReset=MasterReset+1 
    From Character Join Memb_Stat on Character.Accountid=Memb_Stat.memb___id
    collate Latin1_general_CI_AS
    WHERE Resets=100 AND Memb_Stat.ConnectStat = 0 and CtlCode=0 and MasterReset=0
    
    "and UPDATE shop.gold
    Set credits=credits+1000 "

  7. #7
    Enthusiast x0814328 is offline
    MemberRank
    Aug 2009 Join Date
    32Posts

    Re: Call a Table [shop.gold] to a Job

    Use MuOnline
    DECLARE @ConnectStattinyint DECLARE @memb___id varchar (10) SELECT @memb___id=memb___id,@ConnectStat=ConnectStat FROM memb_stat WHERE ConnectStat='1' UPDATE shop.gold SET credits=credits+15 where login=@memb___id
    Something like this @4FUNer????
    Last edited by x0814328; 28-12-14 at 07:49 PM.



Advertisement