kairu

Members
  • Content count

    17
  • Joined

  • Last visited

  1. Thanks! i will try this one when i get back... is there also a way to pass arguments/variables into the script?
  2. This may probably be moved to the source support section. Heres an update/work around of it for now: i went in and inputted the items that will be having the hidden abilities in itemdb.h ofcourse i have declared the missing ones and included sql and inter files. nameid = sd->status.inventory[index].nameid; if(itemdb_is_cweapon(nameid)){ unique_id = sd->status.inventory[index].unique_id; if(SQL_ERROR == SQL->Query(inter->sql_handle, "SELECT `description` FROM `randombonus` WHERE `unique_id`='%s'", unique_id)){ Sql_ShowDebug(inter->sql_handle); } else{ char str[500]; SQL->GetData(inter->sql_handle, 1, &data, NULL); str[0] = data; clif->disp_message(&(sd)->bl,str,CHAT); SQL->FreeResult(inter->sql_handle); } } The problem now is im stuck of the error it gives and i dont know what to do with it next.
  3. Is there any workaround in this? or atleast a guide on how to call a function on src
  4. i basically have a randomized skill system where equipments give skills and/or stats etc.. so id like players to know what they got on it and if theyre going to trade it to another player it shows them. so if they put in the item on the trade window theres a dispbottom that shows the hidden attributes.
  5. So i was wondering if this is possible if you put in an item in the trade window a function will be called. i tried looking at trade.c of trade_tradeadditem; but i dont know how to call the function if i put it in the source code. or is there like an "OnTradeAdd" command?
  6. i now kind of get it. last question: lets say if i want the heal interval to be like 30ms or lower will that cause any problems to the server on how its "stress" level can handle it?
  7. That what i was thinking i just dont know what values to use and how to use 2 ticks in it.
  8. oh i didnt see that however can it be percentage of your max hp instead? Yup. bonus2 bHPRegenRate, (MaxHp/100), 1000;This script would drain 1% of max hp every 1000ms (1 second). it should gain 1% every 1s. But thanks i understand now next problem is how long it will linger; was going to put this in ygg berries changing it instead of instant healing to overtime healing. like lets say if you use the berry you would heal 3% of your max hp every 1second for 5second linger time. is it possible still with this item bonus? sorry for being unspecific.
  9. oh i didnt see that however can it be percentage of your max hp instead?
  10. does anyone have a src code for heal over time like Renovatio skill on Arch bishop does? however the tick rate is configurable so maybe it'll work like an item bonus code like bonus3 bHealOverTime,x,y,z; where x= hp; y= sp; z= tick rate; Also does this increase the server load? i feel like ticks plays a heavy role on it.
  11. Menu without mes is always a problem.Try put mes before select, and see if original problem exists or not Also, you don't need to do attachrid in the code you posted above. I tried it with mes but its still the same. however, instead of "doevent" on the script i used addtimer and no more errors
  12. The Test npc script is the one i called on doevent. it may have something to do with my other scripts but it should show what current script i have open it with. Edit: ive disabled all my custom scripts but still the same. It also crashes if i call the doevent on the item
  13. Hi, Thanks for replying i will try this tomorrow when i get up in bed and will let you know if it works. i tried to do this but i got errors saying this: [Warning]: Unable to restore stack! Double continuation [Debug]: Previous script (lost): [Debug]: Current script: [Debug]: Source (NPC): Test (invisible/not on a map)
  14. I made an item call a function which have player interaction to choose on a menu but it gets the error npc_scriptcont: failed npc->checknear test. Heres an example of it: Item id of Knife -> 1202 with script on it as: callfunc "getSkill"; and the gist of the function of: function script getSkill { attachrid(getcharid(3)); retryRK: dispbottom "Select a Skill you want."; switch(select("Enchant Blade:Sonic Wave:Death Bound")){ case 1: .@r = 1; break; case 2: .@r = 2; break; case 3: .@r = 3; break; default: goto(retryRK); } close; <More code...> I'm just wondering if there's any fix to this http://herc.ws/board/tracker/issue-3720-failed-npc-checknear-test-on-item-equip-function/ or any work around it. would greatly appreciate it!
  15. it maybe have something to do with cps.dll unless youve renamed it, if not maybe he installed another client which also has the same file name