View difference between Paste ID: s4a1swk1 and XizbLMSJ
SHOW: | | - or go back to the newest paste.
1-
local crystal_war = 129 -- Crystal Warlord looktype
1+
local soil_guardian = 131 -- Crystal Warlord looktype
2
3
function onUse(cid, item, frompos, item2, topos)
4
5-
	if item.itemid == 18521 then
5+
	if item.itemid == 18518 then
6
7-
	if canPlayerWearOutfit(cid, crystal_war, 1) then
7+
	if canPlayerWearOutfit(cid, soil_guardian, 1) then
8-
	doPlayerSendTextMessage(cid, 27, "You already have the first addon {Crystal Warlord}.") return true end
8+
	doPlayerSendTextMessage(cid, 27, "You already have the first addon {Soil Guardian}.") return true end
9
10
	doRemoveItem(item.uid)
11-
		doPlayerAddOutfit(cid, crystal_war, 1)
11+
		doPlayerAddOutfit(cid, soil_guardian, 1)
12-
			doPlayerSendTextMessage(cid, 22, "You won the first addon {Crystal Warlord}.")
12+
			doPlayerSendTextMessage(cid, 22, "You won the first addon {Soil Guardian}.")
13
		end
14
15-
	if item.itemid == 18522 then
15+
	if item.itemid == 18519 then
16
17-
	if canPlayerWearOutfit(cid, crystal_war, 2) then
17+
	if canPlayerWearOutfit(cid, soil_guardian, 2) then
18-
	doPlayerSendTextMessage(cid, 27, "You already have the first addon {Crystal Warlord}.") return true end
18+
	doPlayerSendTextMessage(cid, 27, "You already have the first addon {Soil Guardian}.") return true end
19
20
	doRemoveItem(item.uid)
21-
		doPlayerAddOutfit(cid, crystal_war, 2)
21+
		doPlayerAddOutfit(cid, soil_guardian, 2)
22-
			doPlayerSendTextMessage(cid, 22, "You won the second addon {Crystal Warlord}.")
22+
			doPlayerSendTextMessage(cid, 22, "You won the second addon {Soil Guardian}.")
23
		end
24
25
		return true
26
	end