From 8d356dbe3f056474700fcbdd563d8ea437b1464e Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 2 Nov 2008 00:19:12 +0000 Subject: * Minor cleanup in login server * Char server now records client version and reports it to map server * Map server will now report all skills (even ones with dangerous indices) for client version 1 and above * Use status change val1 (instead of val2) index for speed potions, so that they can be triggered more easily from within scripts * Item database now also keeps track of the effect that items have on the spower stat * spower is now based on level + int*2 + modifier (see last point) * Minor bugfixes in support functionality for the SLang interpreter - Do not restart the map server without also restarting the char server, as the interserver protocol has changed slightly! (patch by fate) --- src/map/itemdb.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/map/itemdb.c') diff --git a/src/map/itemdb.c b/src/map/itemdb.c index f68f416..2c247bb 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -328,7 +328,7 @@ static int itemdb_readdb(void) if(line[0]=='/' && line[1]=='/') continue; memset(str,0,sizeof(str)); - for(j=0,np=p=line;j<17 && p;j++){ + for(j=0,np=p=line;j<18 && p;j++){ while (*p == '\t' || *p == ' ') p++; str[j]=p; p=strchr(p,','); @@ -359,15 +359,16 @@ static int itemdb_readdb(void) id->atk=atoi(str[7]); id->def=atoi(str[8]); id->range=atoi(str[9]); - id->slot=atoi(str[10]); - id->class=atoi(str[11]); - id->sex=atoi(str[12]); - if(id->equip != atoi(str[13])){ - id->equip=atoi(str[13]); + id->magic_bonus = atoi(str[10]); + id->slot=atoi(str[11]); + id->class=atoi(str[12]); + id->sex=atoi(str[13]); + if(id->equip != atoi(str[14])){ + id->equip=atoi(str[14]); } - id->wlv=atoi(str[14]); - id->elv=atoi(str[15]); - id->look=atoi(str[16]); + id->wlv=atoi(str[15]); + id->elv=atoi(str[16]); + id->look=atoi(str[17]); id->flag.available=1; id->flag.value_notdc=0; id->flag.value_notoc=0; -- cgit v1.2.3-70-g09d2