Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------------------------------
- -- Nightmare Demonic Helm System by: Laboe --
- -- Credits for Xtacy Clock system. --
- ------------------------------------------------------
- --[[ Iteminfo.txt:
- 3751 Nightmare Demonic Helm e1043 10110001 0000920001 0001930001 0002991001 0003010301 0 0 20 0 0 0 0 0 1 1 1 1 1 1 0 -1 80 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 20 20 0 0 0 0 0 0 20 0 0 0 0 0 0 0 0 0 0 0 0 20 20 0 0 0 0 0 0 0 0 0,30 0 0 20000,2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Nightmare Demonic equipments 0
- 7803 Nightmare Demonic Helm Pump n2559 10130005 0 0 0 0 0 0 87 0 0 0 0 0 1 1 1 1 99 0 0 -1 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ItemUse_HelmPump 0 0 0 0 0 0 Pumps the Nightmare Demonic Helm to Level it up [Level 1-10]! Double click the item, then click on the selected Nightmare Demonic Helm to start leveling (Possible failure)! 0
- 7812 Dusty Nightmare Demonic Helm e1043 10110001 0000920001 0001930001 0002991001 0003010301 0 0 20 0 0 0 0 0 1 1 1 1 1 1 0 -1 80 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,10000 0,10000 0 0 0 0 0 0 0,100 0 0,10 0 0 20000,2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Nightmare Demonic equipments 0
- --skilleff.txt
- 209 sergeant1 -1 0 SERGEANT1_Add SERGEANT1_Rem 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4112 1 0 0 0 0 0 0 0
- 210 sergeant2 -1 0 SERGEANT2_Add SERGEANT2_Rem 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4113 1 0 0 0 0 0 0 0
- 213 sergeant3 -1 0 SERGEANT3_Add SERGEANT3_Rem 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4114 1 0 0 0 0 0 0 0
- 230 sergeant4 -1 0 SERGEANT4_Add SERGEANT4_Rem 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4115 1 0 0 0 0 0 0 0
- 239 sergeant5 -1 0 SERGEANT5_Add SERGEANT5_Rem 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4116 1 0 0 0 0 0 0 0
- --sceneeffectinfo.txt
- 4112 laboem1.par VIPÏîÁ´ º£ÀË 1 0 -1,-1,-1,-1,-1,-1,-1,-1 -1 3 0.0 0.0 -1.0
- 4113 laboem2.par VIPÏîÁ´ º£ÀË 1 0 -1,-1,-1,-1,-1,-1,-1,-1 -1 3 0.0 0.0 -1.0
- 4114 laboem3.par VIPÏîÁ´ º£ÀË 1 0 -1,-1,-1,-1,-1,-1,-1,-1 -1 3 0.0 0.0 -1.0
- 4115 laboem4.par VIPÏîÁ´ º£ÀË 1 0 -1,-1,-1,-1,-1,-1,-1,-1 -1 3 0.0 0.0 -1.0
- 4116 laboem5.par VIPÏîÁ´ º£ÀË 1 0 -1,-1,-1,-1,-1,-1,-1,-1 -1 3 0.0 0.0 -1.0
- ----function Creat_Item_Tattr(item_type,item_lv , item_event) ----
- if item_event == 25 then
- Add_Item_Attr( ITEMATTR_VAL_MXHP, 0);
- Add_Item_Attr( ITEMATTR_VAL_MXSP, 0);
- Add_Item_Attr( ITEMATTR_VAL_PDEF, 0);
- Add_Item_Attr( ITEMATTR_VAL_MSPD, 0);
- Add_Item_Attr( ITEMATTR_COE_MXSP , 0);
- end
- ----function Creat_Item(item, item_type, item_lv, item_event)----
- if item_event == 25 then
- Add_Item_Attr( ITEMATTR_VAL_MXHP, 0);
- Add_Item_Attr( ITEMATTR_VAL_MXSP, 0);
- Add_Item_Attr( ITEMATTR_VAL_PDEF, 0);
- Add_Item_Attr( ITEMATTR_VAL_MSPD, 0);
- Add_Item_Attr( ITEMATTR_COE_MXSP , 0);
- Add_Item_Attr( ITEMATTR_COE_MXHP , 0);
- end
- ---in cha_timer
- Helm_Timer (role, freq, time)
- ]]
- helm = {};
- helm.conf = {
- itemId = 3751,
- dustyId = 7812,
- pump = 7803,
- maxLv = 10,
- More_HP = 1000,
- More_SP = 1000,
- More_PR = 1,
- Move_speed = 10,
- Slot = 0
- };
- helm.effect = {};
- helm.effect[1] = 209
- helm.effect[2] = 209
- helm.effect[3] = 209
- helm.effect[4] = 210
- helm.effect[5] = 210
- helm.effect[6] = 213
- helm.effect[7] = 213
- helm.effect[8] = 230
- helm.effect[9] = 230
- helm.effect[10] = 239
- helm.aId = {
- [helm.conf['itemId']] = true
- };
- helm.upRate = {};
- helm.upRate[0] = 1
- helm.upRate[1] = .9
- helm.upRate[2] = .8
- helm.upRate[3] = .7
- helm.upRate[4] = .6
- helm.upRate[5] = .5
- helm.upRate[6] = .4
- helm.upRate[7] = .3
- helm.upRate[8] = .2
- helm.upRate[9] = .1
- function helm_getHelmLv(item)
- local getLv = GetItemAttr(item, 55);
- if(getLv ~= nil) then
- return getLv;
- elseif(IsPlayer(role) == 1) then
- if getLv > 0 then
- return getLv;
- end
- return 0;
- end
- end
- function helm_hasHelm(cha)
- local head = GetChaItem(cha, 1, (helm.conf['Slot']));
- local headId = GetItemID(head);
- if headId == helm.conf['itemId'] then
- return 1;
- end
- return 0;
- end
- function Helm_Timer (role, freq, time)
- if IsPlayer(role) == 1 then
- local head = GetChaItem(role, 1, (helm.conf['Slot']));
- local headId = GetItemID(head);
- local helmon = helm.aId[headId];
- local helmLv = helm_getHelmLv(head);
- if (helmon == true) then
- local statehelm = helm.effect[helmLv];
- AddState(role, role, statehelm, helmLv, 3600);
- else
- local hasHelm = GetChaStateLv(role, statehelm);
- if hasHelm ~= 0 or headId ~= helm.conf['itemId'] then
- for helmLvi = 1,10 ,1 do
- local statehelm = helm.effect[helmLvi];
- RemoveState(role, statehelm);
- end
- end
- end
- end
- end
- function ItemUse_HelmPump(role, Item)
- local Cha_Boat = GetCtrlBoat ( role )
- if Cha_Boat ~= nil then
- SystemNotice( role , "Cannot use while sailing" )
- UseItemFailed ( role )
- return
- end
- local head = GetChaItem(role, 1, (helm.conf['Slot']));
- local headId = GetItemID(head);
- local helmLv = helm_getHelmLv(head);
- local deviceId = GetItemID(Item);
- if headId ~= helm.conf['itemId'] then
- BickerNotice(role, 'Cannot use ['..GetItemName(deviceId)..'] on '..GetItemName(headId)..'!');
- UseItemFailed(role);
- PlayEffect(role, 346);
- return
- end
- local helmLv = helm_getHelmLv(head);
- if helmLv >= helm.conf['maxLv'] then
- BickerNotice(role, '['..GetItemName(headId)..'] already maxed Upgrade!');
- UseItemFailed(role);
- return
- end
- local success_Rate = Percentage_Random(helm.upRate[helmLv]);
- local helmLv = helm_getHelmLv(head);
- if success_Rate == 1 then
- local helmattr = helmLv + 1
- PlayEffect(role, 345);
- SetItemAttr(head, ITEMATTR_VAL_MXHP, (helmattr * helm.conf['More_HP']));
- SetItemAttr(head, ITEMATTR_VAL_MXSP, (helmattr * helm.conf['More_SP']));
- SetItemAttr(head, ITEMATTR_VAL_PDEF, (helmattr * helm.conf['More_PR']));
- SetItemAttr(head, ITEMATTR_VAL_MSPD, (helmattr * helm.conf['Move_speed']));
- SetItemAttr(head, 55, helmLv + 1);
- local helmLv = helm_getHelmLv(head);
- if helmLv == 10 then
- GMNotice (GetChaDefaultName(role).." Upgraded Domonic Helm to Lv10 Enjoy!")
- end
- else
- SystemNotice(role , "Sorry, upgrade has failed! Luckily helm is not damaged...");
- PlayEffect(role, 346);
- end
- end
- function ItemUse_HelmUnseal(role, Item)
- local Cha_Boat = GetCtrlBoat ( role )
- if Cha_Boat ~= nil then
- SystemNotice( role , "Cannot use while sailing" )
- UseItemFailed ( role )
- return
- end
- local HasItem = CheckBagItem(role, helm.conf['dustyId']);
- if HasItem < 1 then
- BickerNotice(role,"You need ["..GetItemName(helm.conf['dustyId']).."] in your Inventory!");
- UseItemFailed(role);
- return
- else
- TakeItem(role, 0, helm.conf['dustyId'], 1)
- GiveItem(role, 0, helm.conf['itemId'], 1, 25);
- GiveItem(role, 0, helm.conf['pump'], 1, 4)
- Notice(GetChaDefaultName(role)..' successfully Unsealed a '..GetItemName(helm.conf['dustyId'])..'!');
- PlayEffect(role, 345)
- RefreshCha(role)
- end
- end
- function SERGEANT1_Add ( role , statelv )
- end
- function SERGEANT1_Rem ( role , statelv )
- end
- function SERGEANT2_Add ( role , statelv )
- end
- function SERGEANT2_Rem ( role , statelv )
- end
- function SERGEANT3_Add ( role , statelv )
- end
- function SERGEANT3_Rem ( role , statelv )
- end
- function SERGEANT4_Add ( role , statelv )
- end
- function SERGEANT4_Rem ( role , statelv )
- end
- function SERGEANT5_Add ( role , statelv )
- end
- function SERGEANT5_Rem ( role , statelv )
- end
- print( "Demonic Helm.lua Loading Done!" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement