本文整理汇总了C++中Database::GetSafePoint方法的典型用法代码示例。如果您正苦于以下问题:C++ Database::GetSafePoint方法的具体用法?C++ Database::GetSafePoint怎么用?C++ Database::GetSafePoint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Database
的用法示例。
在下文中一共展示了Database::GetSafePoint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CheckQuests
//.........这里部分代码省略.........
}
}
else{
//Level Range
if(Level1 < Levelp && Level2 < Levelp)
{
//not in the req level range
break;
}
}
levelcheck = true;
}
else if (strstr(command,"CUMULATIVE_FLAG") != NULL) {
other->flag[50] = other->flag[50] + 1;
ps = true;
}
else if (strstr(command,"NPC_FLAG") != NULL) {
other->flag[atoi(sep.arg[1])] = atoi(sep.arg[2]);
ps = true;
}
else if (strstr(command,"PLAYER_FLAG") != NULL) {
this->flag[atoi(sep.arg[1])] = atoi(sep.arg[2]);
ps = true;
}
else if (strstr(command,"EXP") != NULL) {
this->AddEXP (atoi(sep.arg[1]));
ps = true;
}
else if (strstr(command,"LEVEL") != NULL) {
this->SetLevel(atoi(sep.arg[1]), true);
ps = true;
}
else if (strstr(command,"SAFEMOVE") != NULL) {
this->MovePC(zone->GetShortName(),database.GetSafePoint(zone->GetShortName(),"x"),database.GetSafePoint(zone->GetShortName(),"y"),database.GetSafePoint(zone->GetShortName(),"z"),false,false);
ps = true;
}
else if (strstr(command,"RAIN") != NULL) {
zone->zone_weather = atoi(sep.arg[1]);
APPLAYER* outapp = new APPLAYER;
outapp = new APPLAYER;
outapp->opcode = OP_Weather;
outapp->pBuffer = new uchar[8];
memset(outapp->pBuffer, 0, 8);
outapp->size = 8;
outapp->pBuffer[4] = atoi(sep.arg[1]); // Why not just use 0x01/2/3?
entity_list.QueueClients(this, outapp);
delete outapp;
ps = true;
}
else if (strstr(command,"SNOW") != NULL) {
zone->zone_weather = atoi(sep.arg[1]) + 1;
APPLAYER* outapp = new APPLAYER;
outapp = new APPLAYER;
outapp->opcode = OP_Weather;
outapp->pBuffer = new uchar[8];
memset(outapp->pBuffer, 0, 8);
outapp->size = 8;
outapp->pBuffer[0] = 0x01;
outapp->pBuffer[4] = atoi(sep.arg[1]);
entity_list.QueueClients(this, outapp);
delete outapp;
ps = true;
}
else if (strstr(command,"GIVE_CASH") != NULL) {
this->AddMoneyToPP(atoi(sep.arg[1]),true);
ps = true;