Welcome to the RaGEZONE - MMORPG development forums.

RB 2 and 3 Scripts Error ... Plz Help

This is a discussion on RB 2 and 3 Scripts Error ... Plz Help within the Tales of Pirates forums, part of the MMO and MMORPG Developments category; Hi guys i have an error creating rb 2 scripts. Everytime i wanna test rb 2, i get this system ...

Results 1 to 3 of 3
  1. #1
    Vic
    Newbie
    Rank
    Member
    Join Date
    May 2010
    Posts
    4
    Liked
    0

    RB 2 and 3 Scripts Error ... Plz Help

    Click
    Hi guys i have an error creating rb 2 scripts. Everytime i wanna test rb 2, i get this system message which says Requirements Not Met. Show proof of rebirth.

    I have the stones everything in my inventory but still no rb 2.
    Can anyone help me fix this bug or error.

    here is my script files i've created.
    All is in Resource>Scripts>MisSDK>NpcSdk.lua

    My Npc Goes to the function GetChaName1_born2 etc.. like it suppose too. But somewhere it get's bugged.

    If anyone can help i'll really appreciate it.

    ----------RB 2 ----------------

    function GetChaName_born2 ( role )

    local cha_name = GetChaDefaultName ( role )
    local cha_lv = GetChaAttr(role, ATTR_LV)
    local cha_job = GetChaAttr(role, ATTR_JOB)

    local i = CheckBagItem( role, 2235 )
    if i < 1 then
    SystemNotice( role ,"Problem no 1 ")
    return 0
    end

    local item_empty=IsEquip(role)
    if item_empty==LUA_TRUE then
    SystemNotice(role,"Please place the item from character's equipment slot into the inventory")
    return 0
    end

    local Item_CanGet = GetChaFreeBagGridNum ( role )
    if Item_CanGet < 5 then
    SystemNotice(role ,"Inventory needs to have at least 5 slots")
    UseItemFailed ( role )
    return 0
    end
    local zs1 =TakeItem( role, 0,2235, 1 )
    if zs1==0 then
    SystemNotice ( role ,"Gather Rebirth Stone failed")
    return 0
    end

    local Zs_Exp = GetChaAttr ( role , ATTR_CSAILEXP )
    if Zs_Exp > 1 then
    SystemNotice(role ,"You've already rebirth")
    return 0
    end

    local cha_skill_num=GetChaAttr(role, ATTR_TP )

    local clear_skill_num=ClearFightSkill(role)

    cha_skill_num=cha_skill_num+clear_skill_num
    SetChaAttr(role, ATTR_TP ,cha_skill_num )

    local ap = GetChaAttr( role , ATTR_AP )

    local cha_str = GetChaAttr(role, ATTR_BSTR )
    local cha_dex = GetChaAttr(role, ATTR_BDEX )
    local cha_agi = GetChaAttr(role, ATTR_BAGI )
    local cha_con = GetChaAttr(role, ATTR_BCON )
    local cha_sta = GetChaAttr(role, ATTR_BSTA )
    ap=ap+cha_str+cha_dex+cha_agi+cha_con+cha_sta-25
    SetChaAttr(role, ATTR_BSTR ,5 )
    SyncChar(role,4)
    SetChaAttr(role, ATTR_BDEX ,5 )
    SyncChar(role,4)
    SetChaAttr(role, ATTR_BAGI ,5 )
    SyncChar(role,4)
    SetChaAttr(role, ATTR_BCON,5 )
    SyncChar(role,4)
    SetChaAttr(role, ATTR_BSTA,5 )
    SyncChar(role,4)
    SetChaAttr(role , ATTR_AP,ap )
    SyncChar(role,4)
    AddSailExp(role, npc , 1 , 1 )
    local sk_add = SK_ZSSL
    AddChaSkill ( role , sk_add , 2 , 2 , 2 )

    PlayEffect( npc, 361 )
    Notice("Extreme celebration "..cha_name.." Rebirth successful. Blessing from the whole server "..cha_name.." Hope you have a safe journey and everything goes your way!")
    return 1

    end

    function GetChaName1_born2 ( role,npc )

    local cha_type = GetChaTypeID ( role )
    if cha_type~=1 then
    SystemNotice( role ,"Only Lance can change into Crusader")
    return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
    SystemNotice( role ,"promblem 2")
    return
    end

    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,9 )
    GiveItem_chibang2 ( role ) --3a¢Xo
    RefreshCha ( role )
    end

    function GetChaName2_born2 ( role,npc )

    local cha_type = GetChaTypeID ( role )
    if cha_type~=2 then
    SystemNotice( role ,"Only Carsise can become Champion")
    return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
    SystemNotice( role ,"Rebirth requirements not met")
    return
    end

    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,8 )
    GiveItem_chibang2 ( role ) --3a¢Xo
    RefreshCha ( role )
    end

    function GetChaName3_born2 ( role,npc )

    local cha_type = GetChaTypeID ( role )
    if cha_type~=1 and cha_type~=3 and cha_type~=4 then
    SystemNotice( role ,"Only Lance, Phyllis or Ami can be voyager")
    return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
    SystemNotice( role ,"Rebirth requirements not met")
    return
    end

    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,16 )
    GiveItem_chibang2 ( role ) --3a¢Xo
    RefreshCha ( role )
    end

    function GetChaName4_born2 ( role,npc )

    local cha_type = GetChaTypeID ( role )
    if cha_type~=1 and cha_type~=3 then
    SystemNotice( role ,"Only Lance, Phyllis can become SharpShooter")
    return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
    SystemNotice( role ,"Rebirth requirements not met")
    return
    end

    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,12 )
    GiveItem_chibang2 ( role ) --3a¢Xo
    RefreshCha ( role )
    end

    function GetChaName5_born2 ( role,npc )

    local cha_type = GetChaTypeID ( role )
    if cha_type~=3 and cha_type~=4 then
    SystemNotice( role ,"Only Phyllis and Ami can become Cleric")
    return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
    SystemNotice( role ,"Rebirth requirements not met")
    return
    end

    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,13 )
    GiveItem_chibang2 ( role ) --3a¢Xo
    RefreshCha ( role )
    end

    function GetChaName6_born2 ( role,npc )

    local cha_type = GetChaTypeID ( role )
    if cha_type~=3 and cha_type~=4 then
    SystemNotice( role ,"Only Phyllis and Ami can become SealMaster")
    return
    end
    local check=GetChaName_born2 ( role )
    if check==0 then
    SystemNotice( role ,"Rebirth requirements not met")
    return
    end

    local cha_job = GetChaAttr( role , ATTR_JOB )
    SetChaAttr(role, ATTR_JOB ,14 )
    GiveItem_chibang2 ( role ) --3a¢Xo
    RefreshCha ( role )
    end

    function GiveItem_chibang2 ( role )
    local cha_type = GetChaTypeID ( role )
    if cha_type==1 then
    GiveItem( role , 0 , 134 , 1 , 4 )
    elseif cha_type==2 then
    GiveItem( role , 0 , 138 , 1 , 4 )
    elseif cha_type==3 then
    GiveItem( role , 0 , 128 , 1 , 4 )
    elseif cha_type==4 then
    GiveItem( role , 0 , 131 , 1 , 4 )
    end
    end

  2. #2
    Hardcore Member
    Rank
    Member
    Join Date
    Jan 2009
    Location
    Texas
    Posts
    108
    Liked
    21

    Re: RB 2 and 3 Scripts Error ... Plz Help

    Are you using the item ID 2235?
    e.g.:
    make 2235,1

  3. #3
    Vic
    Newbie
    Rank
    Member
    Join Date
    May 2010
    Posts
    4
    Liked
    0

    Re: RB 2 and 3 Scripts Error ... Plz Help

    Quote Originally Posted by brclancy111 View Post
    Are you using the item ID 2235?
    e.g.:
    make 2235,1
    thanks i'll try this. Small things like this can stuff u around.

    Also what i've noticed that in my forge.lua script there are also rb function etc there. This might also bug the system.
    I am not sure why this functions and everything are in the forge.lua script.

    If any one know why can they plz let me know, coz i want to delete those scripts from forge.lua

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •