Jump to content

flygun

Former Staff
  • Posts

    729
  • Joined

  • Last visited

  • Days Won

    7
  • Feedback

    0%

Posts posted by flygun

  1. Toxic, what you did is not helpful. Well, it is, but just partially.

    It's pointless to give a solution without explaining why it is a solution! That way next time the person will probably have to ask again. And if someone finds this thread and has the same doubt as the OP, the thread is way less useful.

     

    Okay, so, thread-related, and for the sake of completeness, you have two easy solutions:

     

    Add a quest flag

    You can set a quest flag with

    pc.setqf("name_of_flag", value_of_flag)

    In this case, you could use something like pc.setqf("done", 1) at the end of the quest, and then a check for it at the start (right after the when)

    if pc.getqf("done") != 0 then
        return
    end

    That way the quest would go "player logins -> the quest flag is 0, continue -> give all -> set quest flag to 1", and the next time the player logins, it will do

    "player logins -> the quest flag is NOT 0, stop (return)".

     

    ---

    Now, solution 2 (The one Toxic did), which is better, because it does not involve a quest flag.

     

    Change state

    Quests can have several states. State "start" is the default, which is the one you have on your quest. And when a quest is on a state, it only executes the code on that particular state.

    So... if you just want for a quest to stop doing anything (and never come back), all you need is to redirect it to an empty state!

     

    That's why Toxic added

    state __complete begin
    end

    To jump to a state you have to use the set_state function, so instead of setting a flag like on the other solution, you can just do set_state("__complete")

     

    Hope it's understandable enough.

    Regards!

     

    thank you a lot .....

     

    lol i will save your answer for me XD

     

    #best answer

     

  2. quest give_basic_weapon begin
        state start begin
            when login with pc.get_level() <= 1 begin
                local item_vnum = 19
                local item_vnum2 = 11209
                local item_vnum3 = 12209
                if pc.get_job() == 1 then
                    item_vnum = 1009
                    item_vnum2 = 11409
                    item_vnum3 = 12349
                elseif pc.get_job() == 2 then                
                    item_vnum2 = 11609
                    item_vnum3 = 12489
                elseif pc.get_job() == 3 then
                    item_vnum = 7009
                    item_vnum2 = 11809
                    item_vnum3 = 12629
                end
                pc.give_item2(item_vnum)
                pc.give_item2(item_vnum2)
                pc.give_item2(item_vnum3)
                pc.give_item2(27003, 200)
                pc.give_item2(27006, 200)
                pc.give_item2(72702)
                pc.give_item2(71050, 20)
                pc.give_item2(70038, 20)
                pc.give_item2(13200)
                pc.give_item2(14200)
                pc.give_item2(15200)
                pc.give_item2(16200)
                pc.give_item2(17200)
                pc.give_exp(66640600)
                pc.set_skill_level ( 131 , 59 )
                horse.set_level ( 21 )
                horse.ride ()
                notice_all ( " نرحب باللاعب " .. pc . get_name ( ) .. " في ماتين 2 فيقا نتمنا لك حظا موفقا " )
                chat ( " تذكر لن يطلب منك المراقب حسابك " )
                chat ( " الرجاء الدخول الى المنتدى من وقت الى اخر للحصول على اخر اخبار اللعبه  " )
                chat ( " اذا لم يكن هناك مراقب الرجاء وضع الاستفسار في المنتدى " )
                chat ( " نتوقع منك حسن السلوك والاحترام مع الاعبين الاخرين " )  
            end
        end    
    end
    

    guys i made edit my give_basic_weapon .quest

    but every time i enter the game with the same character i got items and exp and the notice 

     

    i want to give items and exp to the person just once

    and notice just once too

     

    :/

  3. quest parlayan_binekler begin
            state start begin
            when 71124.use begin
        pc.mount(20114, 28800)
        pc.mount_bonus(apply.EXP_DOUBLE_BONUS,30,2400)
            end
            when 71125.use begin
        pc.mount(20115, 28800)
        pc.mount_bonus(apply.ATTBONUS_MONSTER,20,28800)
            end
            when 71126.use begin
        pc.mount(20116, 28800)
        pc.mount_bonus(apply.CRITICAL_PCT,10,28800)
            end
            when 71127.use begin
        pc.mount(20117, 28800)
        pc.mount_bonus(apply.CRITICAL_PCT,10,28800)
            end
            when 71128.use begin
        pc.mount(20118, 28800)
        pc.mount_bonus(apply.DEF_GRADE_BONUS,100,28800)
            end
            when 71131.use begin
        pc.mount(20119, 30000)
            end
            when 71132.use begin
        pc.mount(20119, 60000)
            end
            when 71133.use begin
        pc.mount(20119, 12000)
            end
            when 71134.use begin
        pc.mount(20119, 18000)
            end        
            when 71137.use begin
        pc.mount(20120, 28800)
        pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
            end    
            when 71138.use begin
        pc.mount(20121, 28800)
        pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
            end    
            when 71139.use begin
        pc.mount(20122, 28800)
        pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
        end    
            when 71140.use begin
        pc.mount(20123, 28800)
        pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
            end    
            when 71141.use begin
        pc.mount(20124, 28800)
        pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
            end    
            when 71142.use begin
        pc.mount(20125, 28800)
        pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
            end        
            when 52076.use begin
        pc.mount(20216, 12000)
            end            
        end
    end           
    
  4.  

    lol then i must make it myself ??

    i just asked to see if anyone can saves us to work on it

     

     

     

     

     

    sorry for bad english

    Yes, the AoZ developers also needed 2 make the system, unless you steal it  you need 2 make it.

     

    Here is mine:

    SH8LwYH.jpg

     

     

    nah i don't believe in steal ... that's why i asked

    .... 

     

     

    btw nice once ..... i live yours  and i will try to make one for me

     

  5.  

    lol then i must make it myself ??

    i just asked to see if anyone can
    saves us
    to work on it

     

     

     

     

     

    sorry for bad english

     

    Learn to create your own no one is gonna give you the wom pet system or the AoZ's because it's their work and they don't wanna publish it

     

     

    Yes ><

    i got it and will "Learn to create my own systems"

     

    thx for the advice anyway

     

  6. hello guys

     

     

    first # i got this syserr in my client

    0705 21:52:19038 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
    0705 21:52:20441 ::  CArea::LoadObject Property(12345678) Load ERROR
    0705 21:52:20592 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
    0705 21:52:21181 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/emoticon/vip.mse) Error
    0705 21:52:21181 :: CInstanceBase::RegisterEffect(eEftType=110, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/emoticon/vip.mse, isCache=0) - Error
    0705 21:52:25276 :: CreateFromMemoryFile: Cannot create texture
    0705 21:52:26944 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26944 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26944 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26944 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26944 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26945 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26945 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26945 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26945 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:26945 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/background/hfhsmoke.mse) Error
    0705 21:52:27303 :: CRaceManager::RegisterRacePath : RACE[20528] LOAD MSMFILE[d:/ymir work/npc/halloween1/halloween1.msm] ERROR. Will Find Another Path.
    0705 21:52:27468 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/npc/horse2/wait.msa) ERROR
    0705 21:52:27468 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/npc/horse2/wait.msa) ERROR
    0705 21:52:27468 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/npc/horse2/walk.msa) ERROR
    0705 21:52:27468 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/npc/horse2/run.msa) ERROR
    0705 21:52:27468 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/npc/horse2/death.msa) ERROR
    0705 21:52:27468 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/npc/horse2/death.msa) ERROR
    0705 21:52:27468 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/npc/horse2/death.msa) ERROR
    0705 21:52:27468 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/npc/horse2/death.msa) ERROR
    0705 21:52:27538 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x80000015, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
    0705 21:52:27799 :: Unknown Server Command zetsugfsys 137 | zetsugfsys
    0705 21:52:27853 :: Unknown Server Command Energy 0 0 0 0 | Energy
    
    
    

    2.and how can i change the first maps  (cites)

    i want the original first maps

     

    thank you in advance

     

    sorry for bad english

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.