• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Antiloss?

Ghazer

Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
I use that for antiloss

Code:
function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
		doPlayerAddBlessing(cid, 1)
		doPlayerAddBlessing(cid, 2)
		doPlayerAddBlessing(cid, 3)
		doPlayerAddBlessing(cid, 4)
		doPlayerAddBlessing(cid, 5)
		doPlayerAddPremiumDays(cid, 2)
		doPlayerSetPromotionLevel(cid, 1)
	end

I want another antiloss to have the benefit of buy blessings to VIP players.

Idea?
 
I use this script to "ANTILOSS ITEMS" on my war server, but thats give all blessings... I want another "ANTILOSS ITEM" to take blessings for vip players
 
Add this in login.lua:

Code:
        doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
	doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
 
@up
wft xD?

@Ghazer
Hmm doubt you VIP have storage or what system vip have you?
I need see functions for make script only for VIP i created one per storage

LUA:
function onSay (cid, words, param, channel)
 if getPlayerStorageValue(cid, 1) > 0 then
    for i = 1,5 do
      doPlayerAddBlessing(cid,i)
    end
  end
  return true
end

Edit storage 1 for storage - VIP get you or say me what function have you for u vip system
 
Why not add storage in VIPS and use script
LUA:
function onSay (cid, words, param, channel)
 if getPlayerStorageValue(cid, 1) > 0 then
    for i = 1,5 do
      doPlayerAddBlessing(cid,i)
    end
  end
  return true
end

edit 1 for storage VIP.
 
Back
Top