orangethekid Posted August 31, 2017 Posted August 31, 2017 Hi. i'm looking a make a permanent global variable my pupose is to make a server event. 1.every one must find a 'jellopy' and send to npc. 2.npc will keep all 'jellopy' from all players. 3.my goal is 1,000,000 'jellopy' or all player finish a quest 1,000,000 times. (repeat event) 4.when reach a goal server will make a bonus EXP rate or some thing else. -so if i want to do this i must has a variable that keep all 'jellopy' from all player. -is this must be keep in a database table if i want to make an anoucement on website ? and one more question. how to call a variable from conf/*_*.config such as EXP rate / Drop rate thank you Quote
0 Stolao Posted August 31, 2017 Posted August 31, 2017 "$" - A global permanent variable. They are stored by map-server in database table `mapreg`. $name - permanent global integer variable $Jellopy Quote
0 orangethekid Posted August 31, 2017 Author Posted August 31, 2017 42 minutes ago, Stolao said: "$" - A global permanent variable. They are stored by map-server in database table `mapreg`. $name - permanent global integer variable $Jellopy Thanks. i've try with a simple code but is seem my 'mapreg' is not update a value of $variable. it's work while mapserv is runninig but when i shutdown it's become a default value. Quote
0 Stolao Posted August 31, 2017 Posted August 31, 2017 1 minute ago, orangethekid said: Thanks. i've try with a simple code but is seem my 'mapreg' is not update a value of $variable. it's work while mapserv is runninig but when i shutdown it's become a default value. show your script 1 Quote
0 orangethekid Posted August 31, 2017 Author Posted August 31, 2017 (edited) i try by this one talk and add point. mes "Now you have "+$gEvent+" event point."; set $gEvent,$gEvent+1; close; edit : problem is solve. i change SQL engine into InnoDB and it work now. Thank you Edited August 31, 2017 by orangethekid Quote
Question
orangethekid
Hi. i'm looking a make a permanent global variable
my pupose is to make a server event.
1.every one must find a 'jellopy' and send to npc.
2.npc will keep all 'jellopy' from all players.
3.my goal is 1,000,000 'jellopy' or all player finish a quest 1,000,000 times. (repeat event)
4.when reach a goal server will make a bonus EXP rate or some thing else.
-so if i want to do this i must has a variable that keep all 'jellopy' from all player.
-is this must be keep in a database table if i want to make an anoucement on website ?
and one more question.
how to call a variable from conf/*_*.config such as EXP rate / Drop rate
thank you
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.