EOSERV Forum > EOSERV > Race spawn.
Topic is locked.
Page: << 1 2 >>
Race spawn.
Author Message
Post #78334 Race spawn.

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.

14 years, 5 weeks ago
Post #78337 Re: Race spawn.

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?
14 years, 5 weeks ago
Post #78338 Re: Race spawn.

ty i will check it out ;o

14 years, 5 weeks ago
Post #78339 Re: Race spawn.

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?
14 years, 5 weeks ago
Post #78340 Re: Race spawn.

In welcome.cpp?

14 years, 5 weeks ago
Post #78341 Re: Race spawn.

what line 840*

---
Skype: izumibluuh

I sincerely apologize for my posts from when I was 12.
14 years, 5 weeks ago
Post #78342 Re: Race spawn.

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?
14 years, 5 weeks ago
Post #78343 Re: Race spawn.

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.
14 years, 5 weeks ago
Post #78345 Re: Race spawn.

@danscott Looks very nice, although it gives lots of errors.

EDIT: nvm i got a working one ;o

14 years, 5 weeks ago
Post #78346 Re: Race spawn.

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?
14 years, 5 weeks ago
Post #78347 Re: Race spawn.

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 ;)

14 years, 5 weeks ago
Post #78348 Re: Race spawn.

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.
14 years, 5 weeks ago
Post #78977 Re: Race spawn.

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

14 years, 5 weeks ago
Post #78979 Re: Race spawn.
p2d2r2 posted: (21st May 2011 12:05 am)

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


Id recamend keep trying, ask for help when stuck for example what errors did you get the last time you tried to compile?
14 years, 5 weeks ago
Post #78983 Re: Race spawn.

I dont get errors Insom, I copy the codes and i do everything right because i make sure im doing the right thing, in the right.hpp or w.e, then it cant find the code string.

14 years, 5 weeks ago
Page: << 1 2 >>
Topic is locked.
EOSERV Forum > EOSERV > Race spawn.