Re: [TUT] VIP dont drop items at death - fil22t
Ual, For those who do not know back to top
I just ignore me thinking, lol
Open
Navicat > WarZ > dbo > Fuctions > WZ_Char_SRV_SetStatus
search:
Code:
if(@in_Alive = 0) begin
update UsersChars set DeathUtcTime=GETUTCDATE() where CharID=@in_CharID
if(@IsLegend = 2) begin
-- set default backpack on death
update UsersChars set BackpackID=20176, BackpackSize=12 where CharID=@in_CharID
-- delete stuff from backpack
delete from UsersInventory where CustomerID=@in_CustomerID and CharID=@in_CharID
end
end
and replace
Code:
if(@in_Alive = 0) begin
update UsersChars set DeathUtcTime=GETUTCDATE() where CharID=@in_CharID
-- set default backpack on death
update UsersChars set BackpackID=20176, BackpackSize=12 where CharID=@in_CharID
-- delete stuff from backpack
delete from UsersInventory where CustomerID=@in_CustomerID and CharID=@in_CharID
end
Re: [TUT] VIP dont drop items at death - fil22t
# All Right Source
[dbo].[WZ_ACCOUNT_CREATE]
find
declare @KeyserialType int = 2 -- Start Survivor Package
and
-- create all needed user tables
INSERT INTO UsersData (
CustomerID,
AccountType,
dateregistered,
IsPunisher
) VALUES (
@CustomerID,
[COLOR="#FF0000" @KeyserialType,[/COLOR]
GETDATE(),
'0'
)
- - - Updated - - -
# Serial Type
0 = Legend Package
1 = Pioneer Package
2 = Survivor Package
3 = Guest Account (48 hour access)
Re: [TUT] VIP dont drop items at death - fil22t
Quote:
Originally Posted by
sintaxbr
1 - move equiped item to backpack slot
2 - drop item
3 - die
4- logout
dupe perfect!!
About what this guys said, its duping the item?
Pretty much, this code save which items do you logged in the server and when you die, the same items come to your inventory?
or, is saving when you die and when you revive your player you will receive the same items, but, saved 3 seconds later before you died?
Re: [TUT] VIP dont drop items at death - fil22t
I guess your code is wrong, cuz I did what you do and everyone is dropping loot but, coming back with the same.
Its because that line:
if(profile_.ProfileData.AccountType == 2)
I GUESS
if you change to AccountType == 0, just Legend won't drop loot.
Re: [TUT] VIP dont drop items at death - fil22t
Re: [TUT] VIP dont drop items at death - fil22t
2 = Survival Acc
0 = Legend Acc