summaryrefslogtreecommitdiff
path: root/src/emap/script.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-23Add script function for find craft entry from db based on craft variable.Andrei Karas1-1/+11
New script command: findcraftentry CRAFTVAR, FLAG Where: CRAFTVAR - variable get from initcraft function. FLAG - flag related to npc. It allow search craft entries only with this flag.
2016-01-23Remove var name parameter from requestCraft. Now it return string.Andrei Karas1-24/+4
2016-01-17Add script command for show emotes.Andrei Karas1-0/+37
Copy from hercules with removing emote id check. Script command: emotion e[, flag, name]
2016-01-16Add script command for show link to item with cards by inventory index.Andrei Karas1-4/+75
New script command: getinvindexlink n
2016-01-12Add script command for validate craft object after some time it was created.Andrei Karas1-0/+8
New script command: validatecraft id
2016-01-12Add script command for get item amount from one craft slot.Andrei Karas1-0/+34
New script command: getcraftslotamount id, slot
2016-01-12Add script command for get item id from one craft slot.Andrei Karas1-0/+23
New script command: getcraftslotid id, slot
2016-01-12Add script command for delete craftobject.Andrei Karas1-0/+8
New script command: deletecraft id
2016-01-11Add script command for dump craft object to server console.Andrei Karas1-0/+8
New script command: dumpcraft id
2016-01-11Add script command for convert craft string into craft object.Andrei Karas1-0/+10
New script command: initcraft var$ Return value: craft object id.
2016-01-08Add script command for request craft inventory.Andrei Karas1-0/+64
New script command: requestcraft VAR$[, size] Example: @requestcraft .@var$, 9;
2016-01-06Replace some map->id2bl to map->id2nd.Andrei Karas1-6/+6
2015-11-05Add pseudo npc varibale .alwaysVisible for show npc from any range on map.Andrei Karas1-0/+16
2015-10-26Add script command setskin. For set npc dialog skin on client.Andrei Karas1-0/+12
2015-10-25Add layer field into wall. For now it used 0 from scripts.Andrei Karas1-1/+1
2015-10-19Add fixed bonuses for new mounts.Andrei Karas1-0/+1
2015-10-19Add extended mount support.Andrei Karas1-83/+11
2015-10-18Rename malloc.h to memmgr.h in includes.Andrei Karas1-1/+1
2015-10-17Add support for insert cards script.Andrei Karas1-0/+14
2015-10-16Add script function delcells for delete cells/wall.Andrei Karas1-0/+7
2015-10-16Add script function and packet to set group of cells to given mask (gat value)Andrei Karas1-0/+21
New script function: setcells "map name", x1, y1, x2, y2, mask, "wall name"
2015-10-13Add support for take (pickup) script for items taked from ground by player.Andrei Karas1-0/+14
2015-10-05Allow set get special npc variables from getnpcvariable function.Andrei Karas1-32/+62
2015-10-03Add variable '.walkmask' for get/set npc walk mask.Andrei Karas1-1/+12
2015-10-01Rename some functions in same way like it named in server.Andrei Karas1-4/+4
2015-09-29Add script command checknpccell. It works same like checkcell, but for ↵Andrei Karas1-0/+28
current npc.
2015-09-28Add chatjoin script command for join chat room.Andrei Karas1-0/+34
Format: chatjoin chat [,user [,password]]
2015-09-28Update copyright year.Andrei Karas1-1/+1
2015-09-28Add support for team id for battleground players.Andrei Karas1-0/+20
New script function: setbgteam bgid, num It set for 'bgid' team id to 'num'.
2015-09-28Allow get/set npc stand state by variable '.stand'.Andrei Karas1-0/+13
2015-09-28Allow get/set npc sit state by variable '.sit'.Andrei Karas1-1/+13
2015-09-27Allow get npc chat id by variable '.chat'.Andrei Karas1-0/+12
2015-09-27Allow get extended npc name by variable '.extname$'.Andrei Karas1-0/+12
2015-09-27Allow get/set npc name by variable '.name$'.Andrei Karas1-0/+16
2015-09-27Allow get npc map by reading variable '.map$'.Andrei Karas1-0/+13
2015-09-27Hook set/get npc string variables.Andrei Karas1-0/+9
2015-09-27Allow get/set npc speed by variable '.speed'.Andrei Karas1-0/+15
2015-09-27Allow get/set npc class by variable '.class'.Andrei Karas1-0/+19
2015-09-27Allow read npc position by .x and .y variables.Andrei Karas1-0/+22
2015-09-27Allow get/set npc direction by variable '.dir'.Andrei Karas1-0/+19
2015-09-27Allow setnpcsex works only with two parameters.Andrei Karas1-20/+0
2015-09-27Allow get/set npc distance by using variable '.distance'.Andrei Karas1-0/+12
2015-09-27Allow set/get npc sex by working with variable '.sex'.Andrei Karas1-0/+12
2015-09-27Add .lang variable to npc for storing language.Andrei Karas1-0/+39
Also add hooks to set/get vars.
2015-09-25Add script commands npcsit and npcstand.Andrei Karas1-0/+92
New script commands: npcsit [npcid]; npcstand [npcid];
2015-09-18Add script function for check is parameter string or not.Andrei Karas1-0/+15
New script function: isstr Example: isstr(10) - will return 0 isstr("test") - will return 1
2015-08-22Add script command successrefindex for success item refine by index.Andrei Karas1-0/+51
New script command: successrefindex index, num; index - inventory index num - how many levels to up. Example: successrefindex .@index, 3;
2015-08-22Add script function downrefindex for downgrade refine level.Andrei Karas1-0/+26
New script function: downrefindex index, number index - inventory index number - number of levels to downgrade. Example: downrefindex .@index, 1;
2015-08-21Add script function failedrefindex and some macro.Andrei Karas1-0/+17
New function: failedrefindex index index - inventory item index Example: failedrefindex .@itemid;
2015-08-21Add script functions requestItemIndex and requestItemsIndex.Andrei Karas1-21/+136
This functions request from player inventory indexes for items. Example: requestItemIndex @item; requestItemsIndex @item$, num;