summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-24 02:41:32 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-24 02:41:32 +0000
commite061189cdeb39b3efb0fd3a9e6f299379671fb2f (patch)
treea00b8b11e068c2beec5112f17a167cd5652d919d /src/map/npc.c
parent2d740c0b724383ea09540509d7069d02b74db096 (diff)
downloadhercules-e061189cdeb39b3efb0fd3a9e6f299379671fb2f.tar.gz
hercules-e061189cdeb39b3efb0fd3a9e6f299379671fb2f.tar.bz2
hercules-e061189cdeb39b3efb0fd3a9e6f299379671fb2f.tar.xz
hercules-e061189cdeb39b3efb0fd3a9e6f299379671fb2f.zip
* [Optimized]:
- Setting of variables with defined scope in some frequently executed script events. * [Added]: - Missing script_require_trigger flags for some power hungry events. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7325 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 3d1557c1a..26ab060a7 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1312,8 +1312,8 @@ int npc_selllist(struct map_session_data *sd,int n,unsigned short *item_list)
log_pick(sd, "S", 0, nameid, qty, &sd->status.inventory[idx]);
if(nd) {
- setd_sub(NULL,sd, "@sold_nameid", i, (void *)(int)sd->status.inventory[idx].nameid,NULL);
- setd_sub(NULL,sd, "@sold_quantity", i, (void *)(int)qty,NULL);
+ pc_setreg(sd,add_str("@sold_nameid")+(i<<24),(int)sd->status.inventory[idx].nameid);
+ pc_setreg(sd,add_str("@sold_quantity")+(i<<24),qty);
}
itemamount+=qty;
pc_delitem(sd,idx,qty,0);