Welcome to the RaGEZONE - MMORPG development forums.

Help me please

This is a discussion on Help me please within the Tales of Pirates forums, part of the MMO and MMORPG Developments category; Please i searsh for : - NPC buffer script ( or how to make ot ) And pls i want ...

Results 1 to 3 of 3
  1. #1
    Member
    Rank
    Member
    Join Date
    May 2011
    Posts
    44
    Liked
    0

    Help me please

    Click
    Please i searsh for :
    - NPC buffer script ( or how to make ot )
    And pls i want ask how to make new gems in server and new items

    Please help me tnx alote <3

  2. #2
    Newbie
    Rank
    Member
    Join Date
    Apr 2011
    Posts
    2
    Liked
    0

    Re: Help me please

    GarnerNPC.txt < Same as other Map files >

    Code:
    //170	Buff Yerself	1	1133	15	216700,277600	216700,277600	270	Argent City	1	0	d_talk021	0
    < NPC Script >

    Code:
    function d_talk021 ()
    
         Talk (1, "God Father: Here is the buff.")
         Text (1, "I want to get Blessing beginner.", JumpPage, 2)
         Text (1, "God Father (xkrixxie) Blessing", PureBuff1, 1)
         Text (1, "Goodbye", CloseTalk)
        
         Talk (2, "Priest: Favors gods achieve is not easy. Are you ready to donate 1000 gold coins in the name of their fame?")
         Text (2, "to strengthen my body (+20 defense)", NewbieBuff1, 1)
         Text (2, "Help defeat the enemies (10 attacks)", NewbieBuff2, 1)
         Text (2, "Give me the will to live (+50 life)", NewbieBuff3, 1)
         Text (2, "Back", JumpPage, 1)
    
    end
    < ItemEffect.lua >

    Code:
    function NewbieBuff1 (role)
    
    local money = HasMoney (role, 1000) -- Check for the required amount of gold (by default 1000)
    
    if money == 0 then -- If the amount is not sufficient,
    SystemNotice (role, "Do you have enough gold!") -- Display the system message about the lack of gold
    end
    
    local StateType = GetChaStateLv (role, STATE_QINGZ) -- Check if already imposed this buff
    if StateType == 0 then -- if not imposed, then
    AddState (role, role, STATE_QINGZ, 15, 300) -- Apply the state STATE_QINGZ in character, for a period of 300 seconds (5 minutes), with a level of 15 (not me!)
    TakeMoney (role, nil, 1000) -- Select a character 1000 gold
    SystemNotice (role, "blessed beginner, your defense is increased by 20 points in 5 minutes!") -- Display the system message about the successful imposition of buff
    else -- Otherwise
    SystemNotice (role, "You already have the blessing beginner!") -- Display a message that the buff on a player has been imposed
    end
    end
    
    function NewbieBuff2 (role)
    
    local money = HasMoney (role, 1000)
    
    if money == 0 then
    SystemNotice (role, "Do you have enough gold!")
    end
    
    local StateType = GetChaStateLv (role, STATE_QINGZ)
    if StateType == 0 then
    AddState (role, role, STATE_QINGZ, 16, 300)
    TakeMoney (role, nil, 1000)
    SystemNotice (role, "blessed beginner, your attack is increased by 10 points in 5 minutes!")
    else
    SystemNotice (role, "You already have the blessing beginner!")
    end
    end
    
    function NewbieBuff3 (role)
    
    local money = HasMoney (role, 1000)
    
    if money == 0 then
    SystemNotice (role, "Do you have enough gold!")
    end
    
    local StateType = GetChaStateLv (role, STATE_QINGZ)
    if StateType == 0 then
    AddState (role, role, STATE_QINGZ, 17, 300)
    TakeMoney (role, nil, 1000)
    SystemNotice (role, "blessed beginner, your standard of living increased by 50 points in 5 minutes!")
    else
    SystemNotice (role, "You already have the blessing beginner!")
    end
    end
    
    function StandartBuff1 (role)
    
    local money = HasMoney (role, 10000)
    
    if money == 0 then
    SystemNotice (role, "Do you have enough gold!")
    end
    
    local StateType = GetChaStateLv (role, STATE_XLZH)
    if StateType == 0 then
    AddState (role, role, STATE_XLZH, 10, 300) -- Apply the state STATE_XLZH (Ghost fire) 10lvl for a period of 300 seconds (5 minutes). Here the level of state can be changed. The level of state will sootvetsvovat level caster.
    TakeMoney (role, nil, 10000)
    SystemNotice (role, "imposed Ghost 10lvl fire for 5 minutes!")
    else
    SystemNotice (role, "can not use simultaneously two spells of the same type!")
    end
    end
    
    function StandartBuff2 (role)
    
    local money = HasMoney (role, 10000)
    
    if money == 0 then
    SystemNotice (role, "Do you have enough gold!")
    end
    
    local StateType = GetChaStateLv (role, STATE_SHPF)
    if StateType == 0 then
    AddState (role, role, STATE_SHPF, 10, 300)
    TakeMoney (role, nil, 10000)
    SystemNotice (role, "superimposed Tempering 10lvl for 5 minutes!")
    else
    SystemNotice (role, "can not use simultaneously two spells of the same type!")
    end
    end
    
    function StandartBuff3 (role)
    
    local money = HasMoney (role, 10000)
    
    if money == 0 then
    SystemNotice (role, "Do you have enough gold!")
    end
    
    local StateType = GetChaStateLv (role, STATE_TSHD)
    if StateType == 0 then
    AddState (role, role, STATE_TSHD, 10, 300)
    TakeMoney (role, nil, 10000)
    SystemNotice (role, "imposed angelic shield 10lvl for 5 minutes!")
    else
    SystemNotice (role, "can not use simultaneously two spells of the same type!")
    end
    end
    
    function StandartBuff4 (role)
    
    local money = HasMoney (role, 10000)
    
    if money == 0 then
    SystemNotice (role, "Do you have enough gold!")
    end
    
    local StateType = GetChaStateLv (role, STATE_MLCH)
    if StateType == 0 then
    AddState (role, role, STATE_MLCH, 10, 300)
    TakeMoney (role, nil, 10000)
    SystemNotice (role, "superimposed intense magic 10lvl for 5 minutes!")
    else
    SystemNotice (role, "can not use simultaneously two spells of the same type!")
    end
    end
    
    function StandartBuff5 (role)
    
    local money = HasMoney (role, 10000)
    
    if money == 0 then
    SystemNotice (role, "Do you have enough gold!")
    end
    
    local StateType = GetChaStateLv (role, STATE_FZLZ)
    if StateType == 0 then
    AddState (role, role, STATE_FZLZ, 10, 300)
    TakeMoney (role, nil, 10000)
    SystemNotice (role, "You Go Pimp With Tempest boost by PureJ 10lvl for 5 minutes!")
    else
    SystemNotice (role, "can not use simultaneously two spells of the same type!")
    end
    end
    Credits to PJ.

  3. #3
    Member
    Rank
    Member
    Join Date
    May 2011
    Posts
    44
    Liked
    0

    Re: Help me please

    Thanks alote...
    Please could you explain to me how to put thos thing and where pleasE?
    tnx for advice <3

 

 

Posting Permissions

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