Register for your free account! | Forgot your password?

You last visited: Today at 20:40

  • Please register to post and access all features, it's quick, easy and FREE!


[HELP] command

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 13
Received Thanks: 0
[HELP] command

I would like to know how the write command in data base

For example when a player kills a monster, that you mosntro of an item, if he kills the monster again, the action of this monster would be saying he already got the item that day, your not experienced in programming but I'm doing my own quest.

thank you very much

excuse the English



*Raz is offline  
Old 02/05/2010, 10:23   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 16
Received Thanks: 0
u must have navicat..


hakim939 is offline  
Old 02/05/2010, 12:12   #3
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 814
look in cq_monstertype ... actionid this is the starting action that is called. ... as for daily quests etc idk how to do that myself (though ild love to know *nudge nudge* to anyone who knows )

you could do something like use tasks and then at 00:00 (12am) theres a script ran to delete any lines where the task id is x

then just check for that task if its not there give the item then set the task

then on the 2nd one just do a message for the check
hio77 is offline  
Thanks
1 User
Old 02/05/2010, 12:24   #4
 
elite*gold: 0
Join Date: Feb 2010
Posts: 13
Received Thanks: 0
Quote:
Originally Posted by hio77 View Post
look in cq_monstertype ... actionid this is the starting action that is called. ... as for daily quests etc idk how to do that myself (though ild love to know *nudge nudge* to anyone who knows )

you could do something like use tasks and then at 00:00 (12am) theres a script ran to delete any lines where the task id is x

then just check for that task if its not there give the item then set the task

then on the 2nd one just do a message for the check
That's what I want, but do not know which command lines should I do to it, you could give me some example of action.


*Raz is offline  
Old 02/05/2010, 21:46   #5
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 814
Quote:
Originally Posted by *Raz View Post
That's what I want, but do not know which command lines should I do to it, you could give me some example of action.
im not near my db so i cant give you any direct examples but this is just off my head and from a file i got

item give type
Code:
ACTION_ITEM_ADD = 501, / / Add items. data = itemtype_id, param = "amount amount_limit ident gem1 gem2 magic1 magic2 magic3 data warghostexp gemtype availabletime", param can be omitted, all the default value is 0 (that is not revised)
heres a list of the task types, i dont really use them enough to know which is which straight off
Code:
//--- Mandate system to record the details of the task --- begin 

ACTION_USER_TASK_MANAGER = 1080, ////////////////////////////////////////////// / / / 
/ / / / Data: the task number 
/ / Param: 'new' (to create a new record) 
/ / 'Delete' (delete records) 
/ / 'Isexit' (the existence of the task) 
///////////////////////////////////////////////// 

ACTION_USER_TASK_OPE = 1081, ////////////////////////////////////////////// / / / 
/ / data: the task number, if data == -1, then the following operation is carried out against FindNext 
/ / Param: 'ope opt data', data (value) 
/ / Ope (phase) opt (> =, ==, +=,=) mission operation phase 
/ / Ope (completenum) opt (> =, ==, +=,=) task is completed on the number of operations 
/ / Ope (begintime) opt (> =, ==, +=,=, reset) start time of the mission to operate, for + = time in seconds parameter; for when ">=,==,=" "yyyy -mm-dd hh: mm: ss "for the format 
/ / Reset the start of the mandate that it will set-up time for the current time 
ACTION_USER_TASK_LOCALTIME = 1082, ////////////////////////////////////////////// /////////// 
/ / Data: the task number 
/ / param: 'seconds', the current time with the task start time comparison action; if the current time with the task start time is greater than the difference between the param, then return true. Otherwise, return false 
////////////////////////////////////////////////// //////////////////// 

ACTION_USER_TASK_FIND = 1083, / / for gamers tasks inquiries, records are in accordance with the userid, taskid ascending collection 
/ / param: 'find taskid phase completenum'; in accordance with the task ID, phase, the completion of a specific record number of inquiries; phase with cocompletenum at the same time -1, the only record of inquiry in line with the taskid 
/ / 'Findnext'; inquiries under a record 
//--- Mandate system to record the details of the task --- end
just skim reading maybe 1082 might allow you to set a daily task otherwise it will be a 1080 to check if the task exists or a 1081 depending on how you choose to use it


hio77 is offline  
Thanks
1 User
Reply



« [QUESTION] all of you have a level in skill? | Unknown info about Unknown »

Similar Threads
command
06/27/2010 - CO2 PServer - Discussions / Questions - 8 Replies
Using:CoSX Source hey guys i have my p server and i am PM and i have a normal the name of it is test1 i do /kick test1 ok so it gets dc so now my other friend has an acc name xSplashx i do /kick xSplashx and nothing...
GM command-s
04/06/2010 - SRO PServer - Discussions / Questions - 8 Replies
Please start I Silkroad server 1.236 (CRSEMU) how to fix that I am GM and what are the command-s to spawn the NPC-s and MOB-s and ITEM-s and GOLD please help, give me command-s, ty
i want command
02/24/2009 - CO2 PServer - Discussions / Questions - 3 Replies
hi guys what command for skill reflect and why star guild war in cov2 cource thanx ..
i need GM command
12/29/2008 - Dekaron Private Server - 7 Replies
i open server and i need GM command. thx!
o:- can't do both of that command plz some help ...
02/13/2008 - Kal Online - 9 Replies
hi u guys , sup every ?? hope all fine i have some problem .. i'm a gm in private server and when i type /moveto name of player none moving from my place it's mean not work so any 1 can just say me what can i do ?? 2 get place's player 2nd...



All times are GMT +2. The time now is 20:40.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.