[Script]Buff ticket

Go down

[Script]Buff ticket

Post  Admin on Sun Oct 23, 2011 7:55 pm

Hello, this ticket gives for char all buffs for 5 minutes .

Iteminfo:

### Buff Ticket n1481 10130001 0 0 0 0 0 00 31 0 0 0 0 0 1 1 1 1 99 0 200 -1 0 -1 0 0 -1 -1 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 0,0 0 0 0 0 0 0 0 0 0 ItemUse_buffticket 0 0 0 0 0 0 Double click to get all buffs in 5 minutes.



Itemeffect:


function ItemUse_buffticket( role , Item )
local Cha_Boat = GetCtrlBoat(role)
if Cha_Boat ~= nil then
SystemNotice(role , "Not usable on the sea." )
UseItemFailed (role)
return
end
local buff1 = GetChaStateLv(role,STATE_SHPF)
local buff2 = GetChaStateLv(role,STATE_XLZH)
local buff3 = GetChaStateLv(role,STATE_TSHD)
local buff4 = GetChaStateLv(role,STATE_FZLZ)
local buff5 = GetChaStateLv(role,STATE_MLCH)
if buff1 >= 1 or buff2 >= 1 or buff3 >= 1 or buff4 >= 1 or buff5 >= 1 then
SystemNotice(role,"Only you can use this ticket after duration of buffs end.")
UseItemFailed(role)
return
end
local del_item = DelBagItem( role , ### , 1 )
if del_item == 1 then
AddState ( role , role , STATE_SHPF , 10 , 600 )
AddState ( role , role , STATE_XLZH , 10 , 600 )
AddState ( role , role , STATE_TSHD , 10, 600 )
AddState ( role , role , STATE_FZLZ , 10 , 600 )
AddState ( role , role , STATE_MLCH , 10 , 600 )
BickerNotice( role , "You recived Harden, Spiritual Fire, Tempest Bolt, Angelic Shield, Intense Magic for 5 minutes!" )
end

end




If the effects of buffs dont work immediate go to resource/script/calculate/skilleffect.lua
and find : function STATE_SHPF_Add(role,statelv) bellow of function AllexAttrSet(role) add RefreshCha(role), make it with all STATES! and Change ### for your ITEMID.
avatar
Admin
Admin

Posts : 23
Join date : 2011-10-23

View user profile http://bloodyserverguide.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum