yuxor, horiible. uhm. Geeze. this should be reall short and simple. not long and drudged out. MP cannot be taken away on a p2p server (dont ask me, ask stefan)
NPC Code:
if(playerchats && strequals(#c,buy horse caller) && playerrupees >= 600) {
playerrupees -= 600;
toweapons Horse Caller;
}
if(weaponfired) {
say2 When on a horse say "save horse #"
#byou can save up to 3 horses.
#bSay "call horse #" to call that
#bhorse.#bEx:save horse 1.;
}
if(isweapon) {
if(playerchats) {
tokenize #c;
this.horse = strtofloat(#t(2));
if(strequals(#e(0,10,#c),save horse) && playeronhorse) {
if(this.horse in {1,2,3}) {
setstring client.horse#v(this.horse),#5;
setplayerprop #c,Horse saved (#v(this.horse));
}
}
if(strequals(#e(0,10,#c),call horse)) {
if(this.horse in {1,2,3} && strlen(#s(client.horse#v(this.horse))) > 0) {
puthorse #s(client.horse#v(this.horse)),playerx,playery;
setplayerprop #c,Horse #v(this.horse) called;
}
}
}
}
Just made it up now but it should work, I am feeling a bit charitable today ;p