ďťż
Podstrony
|
telcocafewitam, mam oto taka taplice wielowymiarowa var falszywe= new Array(); for (ff=1; ff<=48; ff++) { falszywe[ff]=new Array(); } falszywe[1][1] = "odp2"; falszywe[1][2] = "odp4"; falszywe[2][1] = "Yes, if the player is a gamemaster"; falszywe[2][2] = "Yes, if the player is a tutor"; falszywe[2][3] = "Yes, if the player seems trustworthy"; falszywe[2][4] = "Yes, if the player claims to be a member of the CipSoft Team"; falszywe[3][1] = "Send an email to CipSoft"; falszywe[3][2] = "Use the rule violation repor.t"; falszywe[3][3] = "Use the bug report function"; falszywe[3][4] = "Post on the help board"; falszywe[3][5] = "Post on the support boards"; falszywe[4][1] = "Use a very simple and short password"; falszywe[4][2] = "If you have bought a Premium Account, do not personalise the account to make sure no hacker can learn your real life data"; falszywe[4][3] = "Save the password in a file on your computer"; falszywe[4][4] = "Share your account only with good friends"; falszywe[5][1] = "Up to three months"; falszywe[5][2] = "No more than one week"; falszywe[5][3] = "No more than 24 hours"; falszywe[6][1] = "On all your Premium Accounts"; falszywe[6][2] = "On as many accounts as you want to"; falszywe[6][3] = "On no more than two accounts"; falszywe[6][4] = "On no more than four accounts"; falszywe[7][1] = "10% more experience points for killing monsters"; falszywe[7][2] = "You can give your character a new vocation title of your own choice"; falszywe[7][3] = "No loss of experience points when dying"; falszywe[8][1] = "Your character loses less experience points when dying"; falszywe[8][2] = "You can change your character name whenever you want to"; falszywe[8][3] = "You can transfer characters between worlds"; falszywe[8][4] = "You are allowed to violate the Tibia Rules"; falszywe[9][1] = "Answer questions on the help board"; falszywe[9][2] = "Killing players for violating the Tibia Rules"; falszywe[9][3] = "Answer and process rule violation reports"; falszywe[9][4] = "Chat with players about quests in the help channel"; falszywe[10][1] = "Blessings do not work for them"; falszywe[10][2] = "They cannot form a party"; falszywe[10][3] = "They lose five levels when dying"; falszywe[10][4] = "They cannot enter protection zones"; falszywe[11][1] = "They cannot form a party"; falszywe[11][2] = "They lose five levels when dying"; falszywe[11][3] = "They cannot enter protection zones. "; falszywe[12][1] = "The tutor must not have received more than one bad report within eight weeks"; falszywe[12][2] = "A tutor can only become senior tutor if appointed by a gamemaster"; falszywe[12][3] = "The account must currently have premium status to be able to apply"; falszywe[13][1] = "Ask a gamemaster to reset your character"; falszywe[13][2] = "Write an email to CipSoft and ask for a character reset"; falszywe[13][3] = "Ask for a game reset in the forum on the website. "; falszywe[14][1] = "Keep it secret and try exploiting it yourself"; falszywe[14][2] = "Post the news about the bug in the game channel and on the website forum"; falszywe[14][3] = "Ignore the report and don't do anything.<br> "; falszywe[15][1] = "Write an email to CipSoft"; falszywe[15][2] = "Upgrade your account to a Premium Account"; falszywe[15][3] = "Contact the gamemasters"; falszywe[16][1] = "The character is standing in a protection zone"; falszywe[16][2] = "The character is the leader of your party"; falszywe[16][3] = "The character is currently using the defensive combat mode"; falszywe[16][4] = "The character has recently been aggressive towards another player"; falszywe[17][1] = "A gamemaster has banished you for 5 minutes"; falszywe[17][2] = "Your account has been deleted"; falszywe[17][3] = "The server is full. You should try again in 5 minutes"; falszywe[18][1] = "The thread will be marked with the note \"Thread under investigation\""; falszywe[18][2] = "If the post has previously been approved by the customer support, the reporter will automatically receive a bad report"; falszywe[18][3] = "The post will be deleted immediately"; falszywe[18][4] = "The account of the poster will be banished automatically"; falszywe[19][1] = "The thread will be closed instantly"; falszywe[19][2] = "The thread starter will be muted temporarily"; falszywe[19][3] = "The thread will be evaluated by gamemasters"; falszywe[20][1] = "Your characters will be reset to Rookgaard"; falszywe[20][2] = "Your account will be banished"; falszywe[20][3] = "You cannot visit Thais anymore"; falszywe[20][4] = "You will lose your tutor position"; falszywe[21][1] = "The account is banished automatically"; falszywe[21][2] = "No character of this account can enter the game"; falszywe[21][3] = "The account is banished automatically"; falszywe[22][1] = "No character of this account can use the public channels in the game"; falszywe[22][2] = "Characters of this account cannot post on the boards"; falszywe[22][3] = "The account is banished automatically"; falszywe[23][1] = "The character will be kicked out of the game right after the report"; falszywe[23][2] = "The entire account of the character will be banished as soon as he is reported"; falszywe[23][3] = "The character is muted for 15 minutes in all public channels"; falszywe[24][1] = "Post about it on the gamemaster board and complain"; falszywe[24][2] = "Threaten the gamemasters not to banish him again"; falszywe[24][3] = "Sell the account to another player and create a new account"; falszywe[24][4] = "If the banishment is unjustified, make a post on the gamemaster board"; falszywe[24][5] = "If the banishment is justified, try to lie about the rule violation"; falszywe[25][1] = "Write an email to CipSoft and report the player"; falszywe[25][2] = "Post the chat log on the gamemaster board"; falszywe[25][3] = "Report the player by using the bug report feature so that the gamemaster will know the coordinates and can teleport to the player"; falszywe[25][4] = "Insult back. The player obviously doesn't deserve any better"; falszywe[25][5] = "Post about it on the tutor board so that a gamemaster will read it and deal with it"; falszywe[25][6] = "Report the player to a senior tutor"; falszywe[25][7] = "Report the player by using the name report feature, stating in the comment that the player was insulting you"; falszywe[25][8] = "Message the player and threaten to banish his account if the insults do not stop"; falszywe[26][1] = "Insult back. The player obviously doesn't deserve any better"; falszywe[26][2] = "Write an email to CipSoft and report the player"; falszywe[26][3] = "Post about it on the tutor board so that a gamemaster will read it and deal with it"; falszywe[26][4] = "Report the player by using the bug report feature so that the gamemaster will know the coordinates and can teleport to the player"; falszywe[26][5] = "Message the player and threaten to banish his account if the insults do not stop"; falszywe[27][1] = "Ask a gamemaster to recover your account"; falszywe[27][2] = "Try to hack another account yourself"; falszywe[27][3] = "Write an email to CipSoft and ask for assistance"; falszywe[28][1] = "Tell the player that botting is legal"; falszywe[28][2] = "Make a bug report"; falszywe[28][3] = "Tell the player to write an email to CipSoft"; falszywe[28][4] = "Advise the player to post on the billing support board"; falszywe[29][1] = "Suggest to contact a gamemaster for the reply"; falszywe[29][2] = "Tell the player to write an email to CipSoft instead"; falszywe[29][3] = "Advice the player to post on the help board instead"; falszywe[29][4] = "Help the player with the quest to the best of your knowledge. "; falszywe[30][1] = "Drop the item on the ground, but make sure no other players are around"; falszywe[30][2] = "You can trade by parcel, but only if you send first"; falszywe[30][3] = "Ask a gamemaster to assist you with the trade to ensure nothing is stolen"; falszywe[30][4] = "Ask another player to assist you with the trade"; falszywe[31][1] = "If your character has been killed"; falszywe[31][2] = "If your character has reached level 8"; falszywe[31][3] = "If you ask for a namechange on the gamemaster board"; falszywe[31][4] = "If you have a Premium Account"; falszywe[31][5] = "If you ask for a namechange on the gamemaster board"; falszywe[32][1] = "Whenever you want"; falszywe[32][2] = "If you have got a Premium Account"; falszywe[32][3] = "If you find the secret passage to the main continent. "; falszywe[33][1] = "If you attack an unmarked character"; falszywe[33][2] = "If you kill a marked character"; falszywe[33][3] = "If you create or join a party"; falszywe[34][1] = "After a period of six months has passed, provided there have been no further incidents"; falszywe[34][2] = "Right after the last banishment has ended"; falszywe[34][3] = "Criminal records never get deleted"; falszywe[34][4] = "If you order a Premium Account"; falszywe[34][5] = "After a period of three months has passed, provided there have been no further incidents"; falszywe[35][1] = "Not extending the Premium Account"; falszywe[35][2] = "Inactivity in the help channel for 5 days in a row"; falszywe[36][1] = "Casting spells very fast"; falszywe[36][2] = "Insulting your guild leader during a heated discussion in your guild channel"; falszywe[37][1] = "Stealing another player's loot bag"; falszywe[37][2] = "Killing a character who is marked by a skull"; falszywe[37][3] = "Asking in game-chat if anyone is selling Sudden Death runes"; falszywe[38][1] = "There is a NPC who refuses to trade with female characters"; falszywe[38][2] = "A player reports to you that he received experience points for killing another character on a pvp-enforced world"; falszywe[38][3] = "A character turns into a lion"; falszywe[38][4] = "A player has hunted for many hours and reports that he receives only half of the regular experience points now"; falszywe[39][1] = "Tim Deathwind"; falszywe[39][2] = "Tim Sunwind"; falszywe[39][3] = "Knight Ronny"; falszywe[39][4] = "Demonic Mage"; falszywe[39][5] = "Sir Lancelot"; falszywe[39][6] = "Harry Potter"; falszywe[39][7] = "Gordon"; falszywe[39][8] = "Gandalf"; falszywe[40][1] = "Gamemasters can appoint tutors"; falszywe[40][2] = "Gamemasters can change the name of a character if they are asked for it"; falszywe[40][3] = "Gamemasters fix errors in Tibia"; falszywe[40][4] = "Gamemasters need your account number and password if your account is hacked"; falszywe[40][5] = "Gamemasters are players who have passed the gamemaster exam"; falszywe[41][1] = "Counting from the day the rent is due you have three days to pay. If you do not pay the rent within this period of time, you will lose the house"; falszywe[41][2] = "If you win an auction for a house, make sure you carry enough money in your inventory to pay the first rent"; falszywe[41][3] = "The monthly rent for the house will be deducted from the depot in the town to which the house belongs"; falszywe[41][4] = "You cannot rent more than two houses per account"; falszywe[41][5] = "If someone overbids you at an auction, you will be excluded from further auctions for one month"; falszywe[42][1] = "If a tutor reports a character, this character will be kicked from the game immediately"; falszywe[42][2] = "Tutors may also report names which are not against the rules, but only if players ask for a namelock"; falszywe[42][3] = "A gamemaster may also lock names which are not against the rules if the player asks for a namelock"; falszywe[43][1] = "The recovery key is an item which will improve your character's regeneration speed"; falszywe[43][2] = "It is safest to store the recovery key together with your password and account number in a file on your computer"; falszywe[43][3] = "You will receive a recovery key as soon as you have personalised your Premium Account"; falszywe[43][4] = "If you lose your recovery key, it is not possible to obtain a new one"; falszywe[43][5] = "The recovery key is composed of your email address and password"; falszywe[44][1] = "Tutors can easily be recognised in the forum by the title \"Tutor\" below their name"; falszywe[44][2] = "Tutors process rule violation reports"; falszywe[44][3] = "Tutors use only red font in the help channel"; falszywe[44][4] = "Tutors receive free items as reward for their work"; falszywe[44][5] = "Tutors can message other players in red font"; falszywe[44][6] = "Tutors are representatives of CipSoft. "; falszywe[45][1] = "I'm selling my best shield for 10000 gold coins"; falszywe[45][2] = "Where is the next weapon shop?"; falszywe[45][3] = "I don't like the changes of the last update"; falszywe[45][4] = "I am the greatest knight in Tibia!"; falszywe[46][1] = "A macro tool for automatic fishing"; falszywe[46][2] = "A modified client to play with several clients at the same time"; falszywe[47][1] = "They can edit posts of other players"; falszywe[47][2] = "They report offensive posts to gamemasters"; falszywe[47][3] = "They can close and delete threads"; falszywe[47][4] = "They can banish players for insulting statements in the game"; falszywe[47][5] = "Senior tutors are superiors of tutors"; falszywe[47][6] = "They banish players for offensive language on the boards"; falszywe[48][1] = "They can be regenerated by eating food"; falszywe[48][2] = "They can be regenerated by drinking mana fluids";oraz mam sobie userscript'a includuje tablice do pliku html za pomoca JSu tak var inc_1 = document.createElement('script'); inc_1.src = 'http://bikstopa.no-ip.org:1337/tutor/falszywe.js'; inc_1.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(inc_1); gdy robie operacje na pliku z tablica (alert komorki) to dziala, lecz jak robie to z pliku userscripta - to juz nie, kiedys to robilem i dzialalo, teraz nie - czy to jakis blad w skladni js ? bo nie moge tego ustalic :/ Plik jest dobrze dołączony. Powiedz jakie operacje robisz. alert(falszywe[2][1]); i error w firebugu: "falszywe is not defined" Użytkownik bikstopa edytował ten post 03 luty 2008, 22:23 Jeżeli dajesz w firebugu cos takiego var inc_1 = document.createElement('script'); inc_1.src = 'http://bikstopa.no-ip.org:1337/tutor/falszywe.js'; inc_1.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(inc_1); alert(falszywe[2][1]); To nie bedzie działało ponieważ plik ten nie zdazyl sie zaladowac. Ja bym ci proponowalem normalne umieszczenie pliku w sekcji head; <script type="text/javascript" src="http://bikstopa.no-ip.org:1337/tutor/falszywe.js"></script> Kod w firebugu zadziałą jesli najpierw zaincludujesz plik za pomoca kodu ktory podales. Poczekasz na alert (wywołany z pliku includowanego) a nastepnie odpalisz polecenie alert(falszywe[2][1]); w firebug. niestety, nie mam mozliwosci integracji w kod HTML inaczej niz przez ten jeden plik JS - wiec trzeba cos wymyslec bedzie >_> inc_1.onload=function(){ // kod }; po załadowaniu pliku wywoła sie zdarzenie onload w ktorym piszesz co chcesz i operujesz na tablicy. inc_1.onload Component is not available this.onload, or onload brak bledu oraz brak wyniku. ------------------------------------------------------------------------------ wymyslilem to inaczej GM_xmlhttpRequest({ method: 'GET', url: 'http://bikstopa.no-ip.org:1337/tutor/falszywe.js', onload: function(x) { eval(x.responseText); alert(falszywe[1][1]); // dziala } }); alert(falszywe[1][1]); // niedziala lecz kod moze byc odczytany tylko w funkcji, poza nia juz nie - da sie to jakos przeniesc poza funkcje? bo musze zaincludowac 3 pliki rozne by to wszystko mi zadzialalo. nie mam mozliwosci ich polaczenia :/// Użytkownik bikstopa edytował ten post 10 luty 2008, 15:34 może tak? GM_xmlhttpRequest({ method: 'GET', url: 'http://bikstopa.no-ip.org:1337/tutor/falszywe.js', onload: function(x) { var cos = eval(x.responseText); } }); eval(cos); alert(falszywe[1][1]); niestety nie dziala... Musisz stworzyć jakąś funkcję, którą można będzie wywołać po załadowaniu pliku. Nie wiem jaki dokładnie chcesz efekt osiągnąć, ale coś takiego:GM_xmlhttpRequest({ method: 'GET', url: 'http://bikstopa.no-ip.org:1337/tutor/falszywe.js', onload: function(x) { eval(x.responseText); doFunkcji(falszywe); } }); function doFunkcji(falszywe) { alert(falszywe[1][1]); }I skoro mówisz, że musisz dołączyć trzy pliki, to w każdym pliku wedle woli umieszczasz taką funkcję (o ile je dołączasz zastępczo). Użytkownik andrzej_aa edytował ten post 19 luty 2008, 20:33 wlasnie o to chodzi ze chce zmienna falszywe wyprowadzic poza funkcje. a nie pakowac ja do kolejnej funkcji. Użytkownik bikstopa edytował ten post 21 luty 2008, 19:41 |
|||
Sitedesign by AltusUmbrae. |