summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 13:25:12 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 13:25:12 +0000
commiteebfc36c15910697eba22ffa8229c6656add6e39 (patch)
tree241a976b29db3ae27c493c2b5009a8badd490ece /src/map/script.c
parentb895e6e423264a426025bdf82fc05a7f83f75839 (diff)
downloadhercules-eebfc36c15910697eba22ffa8229c6656add6e39.tar.gz
hercules-eebfc36c15910697eba22ffa8229c6656add6e39.tar.bz2
hercules-eebfc36c15910697eba22ffa8229c6656add6e39.tar.xz
hercules-eebfc36c15910697eba22ffa8229c6656add6e39.zip
* Reverted npc_checknear to exclude check for class_ -1.
* Removed npc_checknear in npc_buysellsel, npc_selllist and npc_buylist as enough preventive measures of hacking are already implemented. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6370 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 71993f33e..145b09ea6 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10898,9 +10898,10 @@ int run_script_main(struct script_state *st)
struct block_list *bl;
st->state = RUN;
if(st->oid && st->rid && (bl = map_id2bl(st->oid))){
- if(bl->type == BL_PC){
+ // Perfomance impact, use buildin_doevent instead for interactive item scripts.
+ /*if(bl->type == BL_PC){
clif_sendfakenpc(((TBL_PC *)bl),dummy_npc_id);
- } else if(bl->type == BL_NPC){
+ } else */if(bl->type == BL_NPC){
if(npc_checknear(((TBL_PC *)bl), bl->id))
clif_sendfakenpc(((struct map_session_data *)bl),st->oid);
}