Please let me share my 3 new versions of SC_ITEMSCRIPT. SC_ITEMSCRIPT source code is already embedded on the latest emulator so i will just share my source codes for the version 2 - 4 of SC_ITEMSCRIPT. This function is very usefull in different ways but for me i used it to get an effect from an item without having the actuall item on my storage,inventory or equipment and use it as a additional buff.
SC_ITEMSCRIPT: Additional bonus effect/buff can be dispell by dispell skill and on death.
SC_ITEMSCRIPT2: Additional bonus effect/buff can be dispell by dispell skill but not on death.
SC_ITEMSCRIPT3: Additional bonus effect/buff can be dispell on dearth but not by dispell skill.
SC_ITEMSCRIPT4: Additional bonus effect/buff cannot by dispell by dispell skill nor on death.
I know it is an easy script but the idea is useful. ?
- script samplebuff -1,{
OnPCLoginEvent:
//sc_start sc_itemscript,<duration(- value for unlimited duration and + for limited duration)>,<itemid>;
//use SC_ITEMSCRIPT for buff dispellable by death and dispell skill
//use SC_ITEMSCRIPT2 for buff not dispellable by death but dispellable by dispell skill
//use SC_ITEMSCRIPT3 for buff not dispellable by dispell skill but dispellable by death
//use SC_ITEMSCRIPT4 for buff not dispellable by dispell skill and dispell skill
//This script use gives 10% Fire resistance from Ring of Flame lord effect permanently (it cannot be dispell by dispell skill nor on death)
SC_START SC_ITEMSCRIPT4,-1,2678;//additional effect(1000=1sec)
end;
}
SC_ITEMSCRIPT Manual diff.txt