* Supplied fake NPC ID in sd->npc_id for item scripts.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6590 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
1e975ec56a
commit
164ac7c02a
@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
|
|||||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2006/05/12
|
2006/05/12
|
||||||
|
* Supplied fake NPC ID in sd->npc_id for item scripts. [Lance]
|
||||||
* Bugfix on fake npc [Lance]
|
* Bugfix on fake npc [Lance]
|
||||||
* Fixed mob_once_spawn not working for non-random coordinates. [blackhole89]
|
* Fixed mob_once_spawn not working for non-random coordinates. [blackhole89]
|
||||||
* Reverted again the change that stuns the caster on Ske, Ska, Swoo when
|
* Reverted again the change that stuns the caster on Ske, Ska, Swoo when
|
||||||
|
@ -2704,6 +2704,7 @@ int pc_useitem(struct map_session_data *sd,int n)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sd->canuseitem_tick= tick + battle_config.item_use_interval; //Update item use time.
|
sd->canuseitem_tick= tick + battle_config.item_use_interval; //Update item use time.
|
||||||
|
sd->npc_id = fake_npc_id;
|
||||||
run_script(script,0,sd->bl.id,fake_npc_id);
|
run_script(script,0,sd->bl.id,fake_npc_id);
|
||||||
potion_flag = 0;
|
potion_flag = 0;
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user