Postado Fevereiro 7, 2020 5 anos .Qual servidor ou website você utiliza como base? TFS 0.2 Qual o motivo deste tópico? ajuda Está surgindo algum erro? Se sim coloque-o aqui. Queria coloka delay na mgs guando segura na hotkay fica subindo no defalt sem para Citar void Game::showHotkeyUseMessage(Player* player, Item* item) { int32_t subType = -1; if(item->hasSubType() && !item->hasCharges()) subType = item->getSubType(); const ItemType& it = Item::items[item->getID()]; uint32_t count = player->__getItemTypeCount(item->getID(), subType, false); char buffer[40 + it.name.size()]; if(count == 1) sprintf(buffer, "Using the last %s...", it.name.c_str()); else sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str()); player->sendTextMessage(MSG_INFO_DESCR, buffer); } Editado Fevereiro 8, 2020 5 anos por deivim17 (veja o histórico de edições)
Postado Fevereiro 7, 2020 5 anos void Game::showHotkeyUseMessage(Player* player, Item* item) { int32_t subType = -1; if(item->hasSubType() && !item->hasCharges()) subType = item->getSubType(); const ItemType& it = Item::items[item->getID()]; uint32_t count = player->__getItemTypeCount(item->getID(), subType, false); if(player->hasCondition(CONDITION_EXHAUST, 4597)) { player->sendCancelMessage(RET_YOUHAVETOWAIT); return false; } char buffer[40 + it.name.size()]; if(count == 1) sprintf(buffer, "Using the last %s...", it.name.c_str()); else sprintf(buffer, "Using one of %d %s...", count, it.pluralName.c_str()); if(Condition* showHotkeyExhaust = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_EXHAUST, 1000, 0, false, 4597)) player->addCondition(showHotkeyExhaust); player->sendTextMessage(MSG_INFO_DESCR, buffer); }
Postado Fevereiro 7, 2020 5 anos troca esse RET_YOUHAVETOWAIT por alguma mensagem q vc quer q apareça no caso a minha é: "Sorry, you have to wait." Editado Fevereiro 7, 2020 5 anos por Fir3element (veja o histórico de edições)
Postado Fevereiro 7, 2020 5 anos Autor @Fir3element qualquer coisa que coloka da erro la qualquer msg @deivim17
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.