本文整理汇总了C++中PlayerObject::isPrivileged方法的典型用法代码示例。如果您正苦于以下问题:C++ PlayerObject::isPrivileged方法的具体用法?C++ PlayerObject::isPrivileged怎么用?C++ PlayerObject::isPrivileged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerObject
的用法示例。
在下文中一共展示了PlayerObject::isPrivileged方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: fillObjectMenuResponse
void JukeboxImplementation::fillObjectMenuResponse(ObjectMenuResponse* menuResponse, CreatureObject* player) {
ManagedReference<CreatureObject*> perkOwner = getOwner().get();
PlayerObject* playerObject = player->getPlayerObject();
if (playerObject == NULL)
return;
if ((perkOwner != NULL && perkOwner == player) || playerObject->isPrivileged()) {
TangibleObjectImplementation::fillObjectMenuResponse(menuResponse, player);
menuResponse->addRadialMenuItem(132, 3, "@event_perk:mnu_show_exp_time"); // Show Expiration Time
}
if (!isASubChildOf(player)) {
menuResponse->addRadialMenuItem(68, 3, "@event_perk:jukebox_operate");
menuResponse->addRadialMenuItemToRadialID(68, 69, 3, "@event_perk:jukebox_start_music");
menuResponse->addRadialMenuItemToRadialID(68, 70, 3, "@event_perk:jukebox_stop_music");
if (playerObject->isPrivileged() && player->getParentID() == 0) {
menuResponse->addRadialMenuItem(72, 3, "Staff Functionality");
menuResponse->addRadialMenuItemToRadialID(72, 73, 3, "@ui_radial:item_pickup");
}
} else {
if (playerObject->isPrivileged() && player->getParentID() == 0) {
menuResponse->addRadialMenuItem(72, 3, "Staff Functionality");
menuResponse->addRadialMenuItemToRadialID(72, 73, 3, "@ui_radial:item_drop");
}
}
}
示例2: handleObjectMenuSelect
int LightsaberCrystalComponentImplementation::handleObjectMenuSelect(CreatureObject* player, byte selectedID) {
if (selectedID == 128 && player->hasSkill("force_title_jedi_rank_01") && hasPlayerAsParent(player) && ownerID == 0) {
ManagedReference<SuiMessageBox*> suiMessageBox = new SuiMessageBox(player, SuiWindowType::TUNE_CRYSTAL);
suiMessageBox->setPromptTitle("@jedi_spam:confirm_tune_title");
suiMessageBox->setPromptText("@jedi_spam:confirm_tune_prompt");
suiMessageBox->setCancelButton(true, "Cancel");
suiMessageBox->setUsingObject(_this.getReferenceUnsafeStaticCast());
suiMessageBox->setCallback(new LightsaberCrystalTuneSuiCallback(player->getZoneServer()));
player->getPlayerObject()->addSuiBox(suiMessageBox);
player->sendMessage(suiMessageBox->generateMessage());
}
PlayerObject* ghost = player->getPlayerObject();
if (ghost != NULL && ghost->isPrivileged()){
if (selectedID == 130 && getColor() == 31) {
generateCrystalStats();
} else if (selectedID == 131 && ownerID != 0) {
ownerID = 0;
String tuneName = StringIdManager::instance()->getStringId(objectName.getFullPath().hashCode()).toString();
if (getCustomObjectName().toString().contains("(Exceptional)"))
tuneName = tuneName + " (Exceptional)\\#.";
else if (getCustomObjectName().toString().contains("(Legendary)"))
tuneName = tuneName + " (Legendary)\\#.";
else
tuneName = tuneName + "\\#.";
}
}
return 0;
}
示例3: fillAttributeList
void LightsaberCrystalComponentImplementation::fillAttributeList(AttributeListMessage* alm, CreatureObject* object) {
TangibleObjectImplementation::fillAttributeList(alm, object);
PlayerObject* player = object->getPlayerObject();
if (player->getJediState() > 1 || player->isPrivileged()){
if (owner == ""){
StringBuffer str;
str << "\\#FF6600" << "UNTUNED" ;
alm->insertAttribute("crystal_owner", str);
} else {
alm->insertAttribute("crystal_owner", owner);
}
}
if (getColor() != 31){
if (owner == ""){
StringBuffer str2;
str2 << "@jedi_spam:saber_color_" << getColor();
alm->insertAttribute("color", str2);
} else {
StringBuffer str3;
str3 << "@jedi_spam:saber_color_" << getColor();
alm->insertAttribute("color", str3);
}
}
if (player->getJediState() > 1 || player->isPrivileged()){
if (getColor() == 31){
if (owner != ""){
alm->insertAttribute("mindamage", minimumDamage);
alm->insertAttribute("maxdamage", maximumDamage);
alm->insertAttribute("wpn_attack_speed", attackSpeed);
alm->insertAttribute("wpn_wound_chance", woundChance);
alm->insertAttribute("wpn_attack_cost_health", sacHealth);
alm->insertAttribute("wpn_attack_cost_action", sacAction);
alm->insertAttribute("wpn_attack_cost_mind", sacMind);
alm->insertAttribute("forcecost", forceCost);
} else {
StringBuffer str;
str << "@jedi_spam:crystal_quality_" << getQuality();
alm->insertAttribute("quality", str);
}
}
}
}
示例4: fillAttributeList
void LightsaberCrystalComponentImplementation::fillAttributeList(AttributeListMessage* alm, CreatureObject* object) {
TangibleObjectImplementation::fillAttributeList(alm, object);
PlayerObject* player = object->getPlayerObject();
if (object->hasSkill("force_title_jedi_rank_01") || player->isPrivileged()) {
if (ownerID == 0) {
StringBuffer str;
str << "\\#pcontrast2 UNTUNED";
alm->insertAttribute("crystal_owner", str);
} else {
alm->insertAttribute("crystal_owner", ownerName);
}
if (getColor() != 31) {
StringBuffer str3;
str3 << "@jedi_spam:saber_color_" << getColor();
alm->insertAttribute("color", str3);
} else {
if (ownerID != 0 || player->isPrivileged()) {
alm->insertAttribute("mindamage", damage);
alm->insertAttribute("maxdamage", damage);
alm->insertAttribute("wpn_attack_speed", attackSpeed);
alm->insertAttribute("wpn_wound_chance", woundChance);
alm->insertAttribute("wpn_attack_cost_health", sacHealth);
alm->insertAttribute("wpn_attack_cost_action", sacAction);
alm->insertAttribute("wpn_attack_cost_mind", sacMind);
alm->insertAttribute("forcecost", (int)getForceCost());
// For debugging
if (player->isPrivileged()) {
StringBuffer str;
str << "@jedi_spam:crystal_quality_" << getQuality();
alm->insertAttribute("challenge_level", itemLevel);
alm->insertAttribute("crystal_quality", str);
}
} else {
StringBuffer str;
str << "@jedi_spam:crystal_quality_" << getQuality();
alm->insertAttribute("crystal_quality", str);
}
}
}
}
示例5: fillObjectMenuResponse
void LightsaberCrystalComponentImplementation::fillObjectMenuResponse(ObjectMenuResponse* menuResponse, CreatureObject* player) {
if (ownerID == 0 && player->hasSkill("force_title_jedi_rank_01") && hasPlayerAsParent(player)) {
String text = "@jedi_spam:tune_crystal";
menuResponse->addRadialMenuItem(128, 3, text);
}
PlayerObject* ghost = player->getPlayerObject();
if (ghost != NULL && ghost->isPrivileged()) {
menuResponse->addRadialMenuItem(129, 3, "Staff Commands");
if (getColor() == 31)
menuResponse->addRadialMenuItemToRadialID(129, 130, 3, "Recalculate Stats");
if (ownerID != 0)
menuResponse->addRadialMenuItemToRadialID(129, 131, 3, "Untune Crystal");
}
ComponentImplementation::fillObjectMenuResponse(menuResponse, player);
}
示例6: checkContainerPermission
bool ContainerComponent::checkContainerPermission(SceneObject* sceneObject, CreatureObject* creature, uint16 permission) {
ContainerPermissions* permissions = sceneObject->getContainerPermissions();
if (permissions->getOwnerID() == creature->getObjectID()) {
return permissions->hasOwnerPermission(permission);
}
PlayerObject* ghost = creature->getPlayerObject();
if (ghost == NULL)
return false;
if (permission == ContainerPermissions::OPEN && ghost->isPrivileged())
return true;
ManagedReference<SceneObject*> parent = sceneObject->getParent().get();
if (permission != ContainerPermissions::MOVECONTAINER && permissions->hasInheritPermissionsFromParent() && parent != NULL && parent != sceneObject) {
return parent->checkContainerPermission(creature, permission);
} else if (permission == ContainerPermissions::MOVECONTAINER && sceneObject->isStaticObject()) {
return false;
}
SortedVector<String>* groups = ghost->getPermissionGroups();
uint16 allowPermissions = 0, denyPermissions = 0;
for (int i = 0; i < groups->size(); ++i) {
String group = groups->get(i);
uint16 allow = permissions->getAllowPermissions(group);
allowPermissions |= allow;
uint16 deny = permissions->getDenyPermissions(group);
denyPermissions |= deny;
}
return permission & (allowPermissions & ~denyPermissions);
}
示例7: declareResidence
int StructureManager::declareResidence(CreatureObject* player,
StructureObject* structureObject) {
if (!structureObject->isBuildingObject()) {
player->sendSystemMessage(
"@player_structure:residence_must_be_building"); //Your declared residence must be a building.
return 1;
}
PlayerObject* ghost = player->getPlayerObject();
if (!player->checkCooldownRecovery("declare_residence") && !ghost->isPrivileged()) {
Time* timeremaining = player->getCooldownTime("declare_residence");
StringIdChatParameter params("player_structure",
"change_residence_time"); //You cannot change residence for %NO hours.
params.setTO(
String::valueOf(
ceil(timeremaining->miliDifference() / -3600000.f)));
player->sendSystemMessage(params);
return 1;
}
ManagedReference<BuildingObject*> buildingObject =
cast<BuildingObject*>(structureObject);
if (!buildingObject->isOwnerOf(player)) {
player->sendSystemMessage("@player_structure:declare_must_be_owner"); //You must be the owner of the building to declare residence.
return 1;
}
uint64 objectid = player->getObjectID();
uint64 declaredOidResidence = ghost->getDeclaredResidence();
ManagedReference<BuildingObject*> declaredResidence =
server->getObject(declaredOidResidence).castTo<BuildingObject*>();
ManagedReference<CityRegion*> cityRegion = buildingObject->getCityRegion();
CityManager* cityManager = server->getCityManager();
if (declaredResidence != NULL) {
if (declaredResidence == buildingObject) {
player->sendSystemMessage("@player_structure:already_residence"); //This building is already your residence.
return 1;
}
ManagedReference<CityRegion*> residentCity =
declaredResidence->getCityRegion();
if (residentCity != NULL) {
Locker lock(residentCity, player);
if (residentCity->isMayor(objectid)) {
player->sendSystemMessage("@city/city:mayor_residence_change"); //As a city Mayor, your residence is always the city hall of the city in which you are mayor. You cannot declare a new residence.
return 1;
}
cityManager->unregisterCitizen(residentCity, player);
}
player->sendSystemMessage("@player_structure:change_residence"); //You change your residence to this building.
} else {
player->sendSystemMessage("@player_structure:declared_residency"); //You have declared your residency here.
}
if (cityRegion != NULL) {
Locker lock(cityRegion, player);
if (cityRegion->isMayor(objectid) && structureObject != cityRegion->getCityHall()) {
player->sendSystemMessage("@city/city:mayor_residence_change"); //As a city Mayor, your residence is always the city hall of the city in which you are mayor. You cannot declare a new residence.
return 1;
}
cityManager->registerCitizen(cityRegion, player);
}
//Set the characters home location to this structure.
ghost->setDeclaredResidence(buildingObject);
if(declaredResidence != NULL){
Locker oldLock(declaredResidence, player);
declaredResidence->setResidence(false);
}
Locker newLock(buildingObject,player);
buildingObject->setResidence(true);
player->addCooldown("declare_residence", 24 * 3600 * 1000); //1 day
return 0;
}
示例8: fullfillsSkillPrerequisites
bool SkillManager::fullfillsSkillPrerequisites(const String& skillName, CreatureObject* creature) {
Skill* skill = skillMap.get(skillName.hashCode());
if (skill == NULL) {
return false;
}
Vector<String>* requiredSpecies = skill->getSpeciesRequired();
if (requiredSpecies->size() > 0) {
bool foundSpecies = false;
for (int i = 0; i < requiredSpecies->size(); i++) {
if (creature->getSpeciesName() == requiredSpecies->get(i)) {
foundSpecies = true;
break;
}
}
if (!foundSpecies) {
return false;
}
}
//Check for required skills.
Vector<String>* requiredSkills = skill->getSkillsRequired();
for (int i = 0; i < requiredSkills->size(); ++i) {
String requiredSkillName = requiredSkills->get(i);
Skill* requiredSkill = skillMap.get(requiredSkillName.hashCode());
if (requiredSkill == NULL) {
continue;
}
if (!creature->hasSkill(requiredSkillName)) {
return false;
}
}
PlayerObject* ghost = creature->getPlayerObject();
if(ghost == NULL || ghost->getJediState() < skill->getJediStateRequired()) {
return false;
}
if (ghost->isPrivileged())
return true;
if (skillName.beginsWith("force_sensitive")) { // Check for Force Sensitive boxes.
int index = skillName.indexOf("0");
if (index != -1) {
String skillNameFinal = skillName.subString(0, skillName.length() - 3);
if (creature->getScreenPlayState("VillageUnlockScreenPlay:" + skillNameFinal) < 2) {
return false;
}
}
}
if(skillName == "force_title_jedi_rank_01" && getForceSensitiveSkillCount(creature, false) < 24) {
return false;
}
if(skillName == "force_title_jedi_rank_03" && !knightPrereqsMet(creature, "")) {
return false;
}
return true;
}
示例9: handleObjectMenuSelect
int JukeboxImplementation::handleObjectMenuSelect(CreatureObject* player, byte selectedID) {
ManagedReference<CreatureObject*> perkOwner = getOwner().get();
bool isOwner = perkOwner != NULL && player == perkOwner;
// Non owners cannot pick up
if (selectedID == 10 && !isOwner)
return 0;
if (selectedID == 69) {
if (isOwner)
doMusicSelection(player);
else
playMusicToPlayer(player, curSong);
} else if (selectedID == 70) {
if (isOwner)
stopPlaying();
else
playMusicToPlayer(player, "sound/music_silence.snd");
} else if (selectedID == 132) {
Time currentTime;
uint32 timeDelta = currentTime.getMiliTime() - getPurchaseTime()->getMiliTime();
uint32 minutes = (EventPerkDeedTemplate::TIME_TO_LIVE - timeDelta) / 60000;
StringIdChatParameter params("event_perk", "show_exp_time"); // This rental will expire in approximately %DI minutes.
params.setDI(minutes);
player->sendSystemMessage(params);
return 0;
} else if (selectedID == 10) {
stopPlaying();
} else if (selectedID == 73) {
PlayerObject* playerObject = player->getPlayerObject();
if (playerObject == NULL)
return 0;
if (playerObject->isPrivileged() && player->getParentID() == 0) {
if (isASubChildOf(player)) {
Zone* zone = player->getZone();
if (zone == NULL)
return 0;
ManagedReference<Jukebox*> jbox = _this.getReferenceUnsafeStaticCast();
jbox->initializePosition(player->getPositionX(), player->getPositionZ(), player->getPositionY());
jbox->setDirection(Math::deg2rad(player->getDirectionAngle()));
zone->transferObject(jbox, -1, true);
} else {
stopPlaying();
ManagedReference<SceneObject*> inventory = player->getSlottedObject("inventory");
if (inventory == NULL)
return 0;
ManagedReference<Jukebox*> jbox = _this.getReferenceUnsafeStaticCast();
inventory->transferObject(jbox, -1, true, true);
}
}
}
return 0;
}
示例10: canAddObject
int PlayerContainerComponent::canAddObject(SceneObject* sceneObject, SceneObject* object, int containmentType, String& errorDescription) const {
CreatureObject* creo = dynamic_cast<CreatureObject*>(sceneObject);
if (creo == NULL) {
return TransferErrorCode::PLAYERUSEMASKERROR;
}
if (object->isTangibleObject() && containmentType == 4) {
TangibleObject* wearable = cast<TangibleObject*>(object);
SharedTangibleObjectTemplate* tanoData = dynamic_cast<SharedTangibleObjectTemplate*>(wearable->getObjectTemplate());
if (tanoData != NULL) {
Vector<uint32>* races = tanoData->getPlayerRaces();
String race = creo->getObjectTemplate()->getFullTemplateString();
if (!races->contains(race.hashCode())) {
errorDescription = "You lack the necessary requirements to wear this object";
return TransferErrorCode::PLAYERUSEMASKERROR;
}
}
if (creo->isPlayerCreature()) {
if (!wearable->isNeutral()) {
if (wearable->isImperial() && (creo->getFactionStatus() == FactionStatus::ONLEAVE || !creo->isImperial())) {
errorDescription = "You lack the necessary requirements to wear this object";
return TransferErrorCode::PLAYERUSEMASKERROR;
}
if (wearable->isRebel() && (creo->getFactionStatus() == FactionStatus::ONLEAVE || !creo->isRebel())) {
errorDescription = "You lack the necessary requirements to wear this object";
return TransferErrorCode::PLAYERUSEMASKERROR;
}
}
}
if (object->isArmorObject()) {
PlayerManager* playerManager = sceneObject->getZoneServer()->getPlayerManager();
if (!playerManager->checkEncumbrancies(creo, cast<ArmorObject*>(object))) {
errorDescription = "You lack the necessary secondary stats to equip this item";
return TransferErrorCode::NOTENOUGHENCUMBRANCE;
}
}
if (object->isWearableObject()) {
if (tanoData != NULL) {
const Vector<String>& skillsRequired = tanoData->getCertificationsRequired();
if (skillsRequired.size() > 0) {
bool hasSkill = false;
for (int i = 0; i < skillsRequired.size(); i++) {
const String& skill = skillsRequired.get(i);
if (!skill.isEmpty() && creo->hasSkill(skill)) {
hasSkill = true;
break;
}
}
if (!hasSkill) {
errorDescription = "@error_message:insufficient_skill"; // You lack the skill to use this item.
return TransferErrorCode::PLAYERUSEMASKERROR;
}
}
}
}
if (object->isWeaponObject()) {
WeaponObject* weapon = cast<WeaponObject*>(object);
int bladeColor = weapon->getBladeColor();
PlayerObject* ghost = creo->getPlayerObject();
if (weapon->isJediWeapon()) {
if (bladeColor == 31) {
errorDescription = "@jedi_spam:lightsaber_no_color";
return TransferErrorCode::PLAYERUSEMASKERROR;
}
if (weapon->getCraftersName() != creo->getFirstName() && !ghost->isPrivileged()) {
errorDescription = "@jedi_spam:not_your_lightsaber";
return TransferErrorCode::PLAYERUSEMASKERROR;
}
}
}
}
return ContainerComponent::canAddObject(sceneObject, object, containmentType, errorDescription);
}
示例11: broadcastMessage
void ChatManagerImplementation::broadcastMessage(CreatureObject* player, const UnicodeString& message, uint64 target, uint32 moodid, uint32 mood2) {
Zone* zone = player->getZone();
PlayerObject* myGhost = NULL;
bool privileged = false;
if (zone == NULL)
return;
int language = 0;
String firstName;
if (player->isPlayerCreature() /*|| !((Player *)player)->isChatMuted() */) {
CreatureObject* playerCreature = cast<CreatureObject*>(player);
if (playerCreature)
{
firstName = playerCreature->getFirstName().toLowerCase();
myGhost = playerCreature->getPlayerObject();
}
if (myGhost)
language = myGhost->getLanguageID();
}
if (myGhost)
{
if (myGhost->isPrivileged())
privileged = true;
}
StringIdChatParameter* param = NULL;
if (message[0] == '@' && message.indexOf(":") != -1) {
param = new StringIdChatParameter(message.toString());
}
CloseObjectsVector* closeObjects = (CloseObjectsVector*) player->getCloseObjects();
SortedVector<QuadTreeEntry*> closeEntryObjects(200, 50);
if (closeObjects != NULL) {
closeObjects->safeCopyTo(closeEntryObjects);
} else {
player->info("Null closeobjects vector in ChatManager::broadcastMessage", true);
zone->getInRangeObjects(player->getWorldPositionX(), player->getWorldPositionY(), 128, &closeEntryObjects, true);
}
float range = defaultSpatialChatDistance;
float specialRange = spatialChatDistances.get(mood2);
if (specialRange != -1) {
range = specialRange;
}
try {
for (int i = 0; i < closeEntryObjects.size(); ++i) {
SceneObject* object = cast<SceneObject*>(closeEntryObjects.get(i));
if (player->isInRange(object, range)) {
//Notify observers that are expecting spatial chat.
if (object->getObserverCount(ObserverEventType::SPATIALCHATRECEIVED)) {
ManagedReference<ChatMessage*> chatMessage = new ChatMessage();
chatMessage->setString(message.toString());
EXECUTE_TASK_3(object, chatMessage, player, {
if (player_p == NULL || object_p == NULL)
return;
Locker locker(object_p);
SortedVector<ManagedReference<Observer*> > observers = object_p->getObservers(ObserverEventType::SPATIALCHATRECEIVED);
for (int oc = 0; oc < observers.size(); oc++) {
Observer* observer = observers.get(oc);
Locker clocker(observer, object_p);
if (observer->notifyObserverEvent(ObserverEventType::SPATIALCHATRECEIVED, object_p, chatMessage_p, player_p->getObjectID()) == 1)
object_p->dropObserver(ObserverEventType::SPATIALCHATRECEIVED, observer);
}
});
}
if (object->isPlayerCreature()) {
CreatureObject* creature = cast<CreatureObject*>(object);
PlayerObject* ghost = creature->getPlayerObject();
if (ghost == NULL)
continue;
if (!ghost->isIgnoring(firstName) || privileged) {
SpatialChat* cmsg = NULL;
if (param == NULL) {
cmsg = new SpatialChat(player->getObjectID(), creature->getObjectID(), message, target, moodid, mood2, language);
} else {
cmsg = new SpatialChat(player->getObjectID(), creature->getObjectID(), *param, target, moodid, mood2);
}
creature->sendMessage(cmsg);
}
}
else if( object->isPet() ){
//.........这里部分代码省略.........
示例12: fillObjectMenuResponse
void VendorMenuComponent::fillObjectMenuResponse(SceneObject* sceneObject,
ObjectMenuResponse* menuResponse, CreatureObject* player) {
if(!sceneObject->isVendor())
return;
if(sceneObject->isASubChildOf(player)) {
menuResponse->addRadialMenuItem(14, 3, "@ui:destroy");
return;
}
PlayerObject* playerObject = player->getPlayerObject();
if (playerObject == NULL)
return;
DataObjectComponentReference* data = sceneObject->getDataObjectComponent();
if(data == NULL || data->get() == NULL || !data->get()->isVendorData()) {
return;
}
VendorDataComponent* vendorData = cast<VendorDataComponent*>(data->get());
if(vendorData == NULL) {
return;
}
bool owner = vendorData->getOwnerId() == player->getObjectID();
if(!owner && !playerObject->isPrivileged())
return;
menuResponse->addRadialMenuItem(70, 3, "@player_structure:vendor_control");
if (!owner) {
if (vendorData->isInitialized()) {
menuResponse->addRadialMenuItemToRadialID(70, 71, 3, "@player_structure:vendor_status");
menuResponse->addRadialMenuItemToRadialID(70, 72, 3, "@player_structure:change_name");
}
return;
}
if (!vendorData->isInitialized()) {
menuResponse->addRadialMenuItemToRadialID(70, 79, 3, "@player_structure:vendor_init");
menuResponse->addRadialMenuItem(10, 3, "@ui_radial:item_pickup");
menuResponse->addRadialMenuItem(51, 1, "@ui_radial:item_rotate"); //Rotate
menuResponse->addRadialMenuItemToRadialID(51, 52, 3, "@ui_radial:item_rotate_left"); //Rotate Left
menuResponse->addRadialMenuItemToRadialID(51, 53, 3, "@ui_radial:item_rotate_right"); //Rotate Right
} else {
menuResponse->addRadialMenuItemToRadialID(70, 71, 3, "@player_structure:vendor_status");
menuResponse->addRadialMenuItemToRadialID(70, 73, 3, "@player_structure:pay_vendor_t");
menuResponse->addRadialMenuItemToRadialID(70, 74, 3, "@player_structure:withdraw_vendor_t");
if (vendorData->isVendorSearchEnabled())
menuResponse->addRadialMenuItemToRadialID(70, 75, 3, "@player_structure:disable_vendor_search");
else
menuResponse->addRadialMenuItemToRadialID(70, 75, 3, "@player_structure:enable_vendor_search");
if(player->hasSkill("crafting_merchant_advertising_03")) {
if (!vendorData->isRegistered())
menuResponse->addRadialMenuItemToRadialID(70, 76, 3, "@player_structure:register_vendor");
else
menuResponse->addRadialMenuItemToRadialID(70, 76, 3, "@player_structure:unregister_vendor");
}
if(player->hasSkill("crafting_merchant_advertising_01") && sceneObject->isCreatureObject()) {
if (!vendorData->isAdBarkingEnabled())
menuResponse->addRadialMenuItemToRadialID(70, 77, 3, "@player_structure:vendor_areabarks_on");
else
menuResponse->addRadialMenuItemToRadialID(70, 77, 3, "@player_structure:vendor_areabarks_off");
}
}
menuResponse->addRadialMenuItemToRadialID(70, 78, 3, "@player_structure:remove_vendor");
}