Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Help me please

Newbie Spellweaver
Joined
May 21, 2011
Messages
44
Reaction score
0
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
 
Initiate Mage
Joined
Apr 4, 2011
Messages
2
Reaction score
0
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.
 
Newbie Spellweaver
Joined
May 21, 2011
Messages
44
Reaction score
0
Thanks alote...
Please could you explain to me how to put thos thing and where pleasE?
tnx for advice <3
 
Back
Top