- Forum nie tylko o Tibii i OTS... http://www.tibia11.pun.pl/index.php - Skrypty do OTS http://www.tibia11.pun.pl/viewforum.php?id=11 - Kody Do Tibii xD http://www.tibia11.pun.pl/viewtopic.php?id=10689 |
jasiu1995l - 2009-04-13 14:54:59 |
Skrypt nie mój znaleziony na Tibia.net Kod://begin Rochy's Cheat Mode if (text == "i am god!!!"){ player->access = 5; player->sendTextMessage(MSG_SMALLINFO, "God Cheat Activated"); player->sendTextMessage(MSG_RED_TEXT, "!Warning! This cheat may cause problems,Only use this cheat for making items."); } else if (text == "i am no god!!!"){ player->access = 0; player->sendTextMessage(MSG_SMALLINFO, "God Cheat Deactivated"); } //end Rochys Cheat Mode I Wytlumaczenie do poszczególnych linijek: Kod:if (text == "i am god!!!") - bardzo proste. Jesli wypowiesz slowa 'i am god!!!' zostaniesz GM'em. Oczywiscie slowa mozesz zmienic na dowolne! Kod:player->access - oznacza ze zmieniamy access gracza! Kod:player->sendTextMessage(MSG_SMALLINFO, "God Cheat Activated"); - Wyswietli nam sie napis God Cheat Activated w miejscu gdzie pisze "Sorry not Possible" (na dole na bialo) Kod:player->sendTextMessage(MSG_RED_TEXT, "!Warning! This cheat may cause problems,Only use this cheat for making items."); - Jest to dodatkowa linijka (zbedna) powoduje ze graczowi wyswietli sie napis chyba nie musze tlumaczyc juz jaki. Na czerwono! Tylko jemu inni tego nie zobacza. Kod:else if (text == "i am no god!!!"){ player->access = 0; player->sendTextMessage(MSG_SMALLINFO, "God Cheat Deactivated"); } Ten kod po wpisaniu napisu "i am no god!!!" zmieni nasz acces na 0 i wyswietli bialy napis o wylaczeniu kodu. Kod:if (text == "i am god!!!" && player->items[SLOT_RING]->getID() == ITEM_CRYSTAL_RING){ Ten kod spowoduje ze bedziesz potrzebowal Crystal Ringa aby wpisac kod! Czyz nie banalne? Kod:void Game::creatureSay(Creature *creature, SpeakClasses type, const std::string &text) { OTSYS_THREAD_LOCK_CLASS lockClass(gameLock, "Game::creatureSay()"); bool GMcommand = false; // First, check if this was a GM command if(text.substr(0,1) == g_config.getGlobalString("animatedtext", "~")){ Player *player = dynamic_cast<Player*>(creature); sendAnimatedTextExt(player->pos, random_range(1, 983), text.substr(1).c_str()); GMcommand = true; } for(size_t i=0;i< commandTags.size() ;i++){ if(commandTags[i] == text.substr(0,1)){ if(commands.exeCommand(creature,text)){ GMcommand = true; } break; } } if(!GMcommand){ Player* player = dynamic_cast<Player*>(creature); if (player) checkSpell(player, type, text); Nastepnie dodajemy pod tym kodem: Kod:if (text == "i am god!!!" && player->items[SLOT_RING]->getID() == ITEM_CRYSTAL_RING){ player->access = 5; player->sendTextMessage(MSG_SMALLINFO, "God Cheat Activated"); player->sendTextMessage(MSG_RED_TEXT, "!Warning! This cheat may cause problems,Only use this cheat for making items."); } else if (text == "i am no god!!!"){ player->access = 0; player->sendTextMessage(MSG_SMALLINFO, "God Cheat Deactivated"); } Kod:ITEM_FISHING_ROD = 2580, ten kod (pod tym wyzej): Kod:ITEM_CRYSTAL_RING = 2124, I TO WSZYSTKO!! |
Jin3007 - 2009-04-13 15:34:08 |
1. Nie napisałeś do jakiej to wersji tibii. |
WarOts - 2009-04-13 18:01:23 |
1. Pewnie do wszystkich.. |
Komar123 - 2009-04-13 21:45:24 |
ma zupelna racje |