Jump to content
SSForum.net is back!

Witchie NL

Member
  • Posts

    947
  • Joined

  • Last visited

Everything posted by Witchie NL

  1. well you already know my awnser... need to learn some things before I can help ya with it. I Hope anyone can make it work.
  2. well its already working but the "example code" page still needs to be done. i dont need it but just that you know.
  3. hmmm now it does work... strange maybe coz i rebooted my pc for the first time in a few weeks. ty
  4. nope. still there, same with the MERVBot example code page. !@#$%^&*S setup on that page the code boxes do work..
  5. i never look at their front page i just need that 1 xD
  6. There is an error on MERVBot's wikipedia (Link) It loads the page just like normal but when you try to look at the codes it used to show you oly see this: Player Commands - (command.cpp) This section describes how to implement player commands into your plugin. Commands are sent to the botInfo::gotCommand function in command.cpp. Example (makes bot reply to !test with "hi"): NaodW29-pre3ce77d56355b754c00000004 How to have commands with numerical parameters Example (!test #): NaodW29-pre3ce77d56355b754c00000005 How to have player name as input Example (!rank player): NaodW29-pre3ce77d56355b754c00000006 How to have multi-parameter input Use the CRT function sscanf() to scan the string for the values. Example (!squads squadA vs squadB or !squads teamA:squadA:teamB:squadB): NaodW29-pre3ce77d56355b754c00000007 Help Menu When a player sends !help to the bot, MERVBot calls botInfo::gotHelp() in each plugin loaded. NaodW29-pre3ce77d56355b754c00000008 NaodW29-pre3ce77d56355b754c0000000# should be the code which it normaly used to display..... is this me or is it the site? (other people got the same problem to, so i guess its wiki)
  7. i found that bug with other people to... and i know how to fix it... are you double clienting/multi clienting? If you are and you use continuum 0.39 you cant download maps while you are double clienting. It trys to write the map but as soon as it wants to put the file in the map (at 99/100%) it doesnt get permission coz of the first client you started blocks it. But with 0.38 you can (im still using it coz of that bug).
  8. im using a 1Ghz PC right now but DCME can do REALY slow (for instance click the left and right buttons) if i press em 3 times it takes a few seconds to scroll left/right 3 parts. So i duno if you can make it any faster or if its just my PC which makes it that slow? (i think its me). Also when i click another window and come back after a few min and i want to copy/paste something it is EXTREMELY slow, i want to move the selection but i see my mouse move over my screen with steps of 5cm. and that happens with most tools. (draw lines-circles-squares-whipe out-select other parts.) Just gets so enoying that i go to SSME after a few min. sorry should have made a new topic for that post. (still a bit sleepy)
  9. do it! the more options the better (unless it creates some weird side affects)
  10. i only had 3 versions. 1: DCME1108 2: DCME1108_edits1 3: DCME_1109 the problem only occured at version 1109. cant tell you more. i can tell you that if you download that file (http://www.ssforum.net/index.php?act=Attac...pe=post&id=1727) and you extract it into c:\windows\system32 it fixes the problem
  11. migt be a stupid question but ill ask it anyway. I downloaded the lates build (1109) and I extracted em and overwriten the old version. Now when I try to open it it gives this error: "the language DLL 'VB6FR.DLL' count not be found." Why does it give that? and where is that dll supose to be? coz i never had that dll before. (actualy not in the folder where DCME is in). - Witch
  12. voted for #1. becouse all the other programs use that option it might confuse people who are used to press enter. would be a pitty if you made a map and didnt save it coz you pressed enter. need to redo the whole thingy
  13. you or we or any1 who is using these sugestions should add more to the client itself and not to the biller. for instance the chat functions. that would be a good i dea i think accept it would be easyer to cheat with i think.
  14. ohh sorry...
  15. i say use ?set Misc:Levelfiles= i say also customize that for bulets i say also do that for the rest of the greens and prizes
  16. YAJ! got a new question! (i do keep you guyz buzzy do i?) question: how does the "last carried" part work i heared that there was a way to determine who was the last person who carried a ball... but just How can you do that do you use: case EVENT_BallMove: { PBall *ball = (PBall*)event.p[0]; } break; or do you use: case EVENT_SoccerGoal: { int team = *(int*)&event.p[0]; int reward = *(int*)&event.p[1]; } break; Or something else? PLEASE HELP ME! WEEEEEEEEEEEEEEEEEEEE by the time im finished with this topic this is a whole tuturial of "how to write a MERVbot plugin"
  17. you g2 be stupid to read that whole text !@#$%^&*... in short (with some add's): - Keep zone organised. - Use of bots will improve the zone to. - NEVER ask for hosts. - Get a good and organised staff. - Use lvz, a nice map and some balanced and original settings. For some more tips.. feel free to post your questions...
  18. i also got another sugestion which is more developing for the serverclient.. dont link all the settings to eachother like: if you set buletdamage on 100 that is used at all ships. just make that setting difrent for each ship... will make much more complicated zones
  19. how would you let a bases disapear wall by wall? make it from doors?
  20. yeah i will... ok i need to do 1 more thing! i need to let my bot delete the previous saved text code i have so far: case EVENT_Tick: { for (int i = 0; i < 4; ++i) --countdown[i]; char u[100]; /// obtaining current time! time_t t=time(NULL); /// obtaining current time! tm *tmp = localtime(&t); /// obtaining current time! strftime(u,99,"%c",tmp); /// obtaining current time! if (countdown[0] == 0) { tell(makeEcho("Saving current scores!")); /// print <tekst> in the mervbot terminal _listnode <Player> *parse = playerlist->head; /// cycle through the playerlist while (parse) /// while cycling... { Player *p = parse->item; /// make sure it's a player... { int killpoints = p->score.killPoints; int flagpoints = p->score.flagPoints; int totalpoints = flagpoints + killpoints; int losses = p->score.losses; int wins = p->score.wins; ofstream file("backup.txt", ios::app); file << "Name :" << p->name << endl; file << "KillPoints :" << killpoints << endl; // squad1 = char[20] file << "FlagPoints :" << flagpoints << endl; file << "TotalPoints :" << totalpoints << endl; // squad2 = char[20] file << "Wins :" << wins << endl; file << "Losses :" << losses << endl << endl; file.close(); } parse = parse->next; /// set link to next player } countdown[0] = 20; } if (countdown[1] == 1) { ofstream file("backup.txt", ios::app); file << "-------------------------------------------------" << endl; file << "[" << u << "]" << endl << endl; countdown[1] = 20; } } break; (the current time function is in a seperate countdown coz it else stops looping the scroll through playerlist loop after the 1st loop (stops after storing 1 players stats)) now it saves: ------------------------------------------------- [04/16/06 16:34:35] Name :name KillPoints :0 FlagPoints :0 TotalPoints :0 Wins :0 Losses :0 ------------------------------------------------- [04/16/06 16:34:55] Name :name KillPoints :0 FlagPoints :0 TotalPoints :0 Wins :0 Losses :0 but it needs to delete the previous stats it has saved so youll just get and keep this: ------------------------------------------------- [04/16/06 16:34:35] Name :name KillPoints :0 FlagPoints :0 TotalPoints :0 Wins :0 Losses :0
  21. !@#$%^&* just when i think i cant get any more stupid i just proof myself i can edit: removed my MOST stupid action i ever made!
  22. ok i think im now serious stupid or did i found a problem! code: case EVENT_Tick: { for (int i = 0; i < 4; ++i) --countdown[i]; if (countdown[0] == 0) { tell(makeEcho("Saving current scores!")); _listnode <Player> *parse = playerlist->head; /// cycle through the playerlist while (parse) /// while cycling... { Player *p = parse->item; /// make sure it's a player... { int killpoints = p->score.killPoints; int flagpoints = p->score.flagPoints; int totalpoints = flagpoints + killpoints; int losses = p->score.losses; int wins = p->score.wins; ofstream file("backup.txt", ios::app); // app = put all data at end of file file << name << endl; file << killpoints << endl; // squad1 = char[20] file << flagpoints << endl; file << totalpoints << endl; // squad2 = char[20] file << " " << endl; file.close(); } parse = parse->next; /// set link to next player } countdown[0] = 60; } } break; errors: e:\mervbot\src\backup\spawn.cpp(78) : error C2065: 'ofstream' : undeclared identifier e:\mervbot\src\backup\spawn.cpp(78) : error C2146: syntax error : missing ';' before identifier 'file' e:\mervbot\src\backup\spawn.cpp(78) : error C2065: 'file' : undeclared identifier e:\mervbot\src\backup\spawn.cpp(78) : error C2653: 'ios' : is not a class or namespace name e:\mervbot\src\backup\spawn.cpp(78) : error C2065: 'app' : undeclared identifier e:\mervbot\src\backup\spawn.cpp(79) : error C2065: 'endl' : undeclared identifier e:\mervbot\src\backup\spawn.cpp(79) : warning C4552: '<<' : operator has no effect; expected operator with side-effect e:\mervbot\src\backup\spawn.cpp() : warning C4552: '<<' : operator has no effect; expected operator with side-effect e:\mervbot\src\backup\spawn.cpp(81) : warning C4552: '<<' : operator has no effect; expected operator with side-effect e:\mervbot\src\backup\spawn.cpp(82) : warning C4552: '<<' : operator has no effect; expected operator with side-effect e:\mervbot\src\backup\spawn.cpp(83) : error C2297: '<<' : illegal, right operand has type 'char [2]' e:\mervbot\src\backup\spawn.cpp(84) : error C2228: left of '.close' must have class/struct/union type Error executing cl.exe. now wtf? i have the #include but still not working..... HELP!?
  23. hmmmm i know i always look there but my problem is that im a dutch !@#$%^&* which doesnt understand (...) from that but ill try again (i always try to learn things from other plugins)
  24. ok my first question to start with is how to write a certain text in an .txt my code so far: case EVENT_Tick: { for (int i = 0; i < 4; ++i) --countdown[i]; if (countdown[0] == 0) { tell(makeEcho("Saving current scores!")); _listnode <Player> *parse = playerlist->head; /// cycle through the playerlist while (parse) /// while cycling... { Player *p = parse->item; /// make sure it's a player... { int killpoints = p->score.killPoints; int flagpoints = p->score.flagPoints; int totalpoints = flagpoints + killpoints; int losses = p->score.losses; int wins = p->score.wins; sendChannel("---" + String(p->name) + "---"); sendChannel("wins :" + String(wins)); sendChannel("losses :" + String(losses)); sendChannel("killpoints :" + String(killpoints)); sendChannel("flagpoints :" + String(flagpoints)); sendChannel("totalpoints :" + String(totalpoints)); sendChannel(" "); } parse = parse->next; /// set link to next player } countdown[0] = 60; } } break; yes it works now i dont need to let the bot say it in a channel but let it put it in a text do!@#$%^&*ent.... and if that player already has be decleared in the textdoc change it and if the player doenst excist in the text do!@#$%^&*ent yet then put it underneath it... meaning of this plugin: backing up the score's in case !@#$%^&* mod's or higher *scorereset the arena! if this is easyer this may also be posible...: that it stores: : kills:#### losses:#### killpoints:#### flagpoints:#### totalpoints:#### Edited: happy samapico?
  25. ok becouse i have liek 4 topics which i need help in for bots (ohh im so stupid) ill open this 1 which ill awnser my questions in.... this way you people dont get to many aged topics...
×
×
  • Create New...