Author | Message | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ![]() So i was lookin for a code that if you make a human character, orc or what ever :P you spawn on a different location. Does anyone know a code for this :o? Im really curious and it sounds very cool. I know that it goes in welcome.cpp but im not quiet sure how to make it.
|
| ![]() I just found the bit of code you need, I'm going to scrawl one up quickly and then I'll edit my post, It'd be quite interesting to see if this works :D give me 10 minutes :p https://tehsausage.com/paste/race-spawn-inspiration What I've put there is just a little bit of what you might need to do, I haven't tested it or anything but I know that you're going to have to add some code to register OrcStartMap and stuff, I can do that too if you want then test it but It might take a while. If my code enspires you at allthen
that's alright :p but if you really can't figure it out I'll try to complete that snippit of code --- If money doesn't grow on trees, then why do banks have branches?
|
| ![]() ty i will check it out ;o
|
| ![]() I forgot to add, what you're looking for is around line 840 :] --- If money doesn't grow on trees, then why do banks have branches?
|
| ![]() In welcome.cpp?
|
| ![]() what line 840* --- Skype: izumibluuh I sincerely apologize for my posts from when I was 12.
|
| ![]() ahh yeah! world.cpp LOL! sorry guys. Seems I forget to say a lot of things :p --- If money doesn't grow on trees, then why do banks have branches?
|
| ![]() Its actually easier than you guys think. You know the home files? You can set them without a level requirement or an innkeeper. So in welcome.cpp you could add checks for the races. In welcome.cpp you would add something like this. if (this->player->character->skin == SKIN_WHITE) { this->player->character->home = humantown //the home you set in the home file this->player->character->warp(this->player->character->startX(),this->player->character->startY(),this->player->character->startMap(),WARP_ANIMATION_SCROLL); } You could easily make a configuration file for race spawns but thats just an example. Also, I am just typing this off the top of my head so make sure to use common sense when adding this. --- Love you too.
|
| ![]() @danscott Looks very nice, although it gives lots of errors.
|
| ![]() Oh? I just scrawled it up so I guess I would half expect a load of errors xD --- If money doesn't grow on trees, then why do banks have branches?
|
| ![]() i was going to do that, like a tribal eo but never got around to it :P ill take a look at your server once its done hollow ;)
|
| ![]() Oh he got help from Newguy, i dont think he needs more help :P --- Skype: izumibluuh I sincerely apologize for my posts from when I was 12.
|
| ![]() Omg, Hollow, Can you add this in a Ice and Fire Rev? everytime i try to add shit in Code::Blocks i screw up... :D
|
| ![]() p2d2r2 posted: (21st May 2011 12:05 am) Id recamend keep trying, ask for help when stuck for example what errors did you get the last time you tried to compile?
| |