Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 32094

outfit store

$
0
0
Code:
function GameStore.processOutfitPurchase(player, offerSexIdTable, addon)
  local looktype
  local _addon = addon and addon or 0

  if player:getSex() == PLAYERSEX_MALE then
    looktype = offerSexIdTable.male
  elseif player:getSex() == PLAYERSEX_FEMALE then
    looktype = offerSexIdTable.female
  end

  if not looktype then
    return error({code = 0, message = "This outfit seems not to suit your sex, we are sorry for that!"})
  elseif (not player:hasOutfit(looktype, 0)) and (_addon...
outfit store

Viewing all articles
Browse latest Browse all 32094

Trending Articles