When I'm going to use a card to reboot my system normally but somehow the cap I'm using.
what could it be?
I'll leave the script down:
-----------------------------------------------
-- ItemEffect.lua
function Item_Use_respet(role,Item)
local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing!" )
UseItemFailed ( role )
return
end
local Item_CanGet = GetChaFreeBagGridNum ( role )
if Item_CanGet < 1 then
SystemNotice(role ,"You need at least 1 empty inventory slots!")
UseItemFailed ( role )
return
end
local Pet_Card = GetChaItem(role, 2, 0)
local Pet_Name = GetItemName(GetItemID(Pet_Card))
local Pet_ID = GetItemType2(GetItemID(Pet_Card))
local Item_ID = GetItemID(Item)
if(Pet_Card == nil)then
SystemNotice(role,"Pet should be in the 1st Inventory Slot for reset.")
UseItemFailed ( role )
return
end
if Item_ID == 8560 then
if(Pet_ID == 59)then
GiveItem(role, 0,GetItemID(Pet_Card),1,4)
RemoveChaItem(role ,GetItemID(Pet_Card),0,0,0,2,1 )
SystemNotice(role,"Successfully Reset this Pet "..Pet_Name.."!")
else
SystemNotice(role,"Only for Pet can be used the Pet Card Reset!")
UseItemFailed ( role )
return
end
end
end
-- ItemInfo.txt
8560 Reset Pet Card n0184 10130005 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 99 0 500000 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 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 Item_Use_respet 0 0 0 0,0 0,0 0,0 To restore your pet to level zero you need to put the pet in the first slot of the bag and double-click the Resest Pet Card! 0