Jump to content

Recommended Posts

  • Former Staff

hello guys i made this quest .... but i need to know somthing

 

how to make the quest resend the letter after click on it ??

 

i mean i don't want the letter on the left side of the window disappear

 

i can see a   a function called "restart_quest"

 

but don't know how to use it

 

quest tickets begin


state start begin
when letter begin
send_letter ( " شراء قسائم " ) --Quest Name
end
when button or info begin
say_yellow (" هل تريد شراء قسائم نقود ؟؟ ") --title
say (" ")
say (" ")
say (" ")
say_red (" من هنا يمكنك شراء قسائم نقود ")
say_red (" اختر نوع القسيمه التي تريد شرائها ")
local a = select (" قسيمه ام ال500 "," قسيمه ام ال 250 "," قسيمه ام ال 100 " , " اغلاق ")
if 4==a then return

elseif 1==a then
say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
local a1 = select (" واحدة500× ", " اثنتان500× ", " ثلاثه500× ", " اربعه500× ", " رجوع ")
if 1==a1 then
if pc.get_money () <= (499999999) then --check if player got the money ---
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999500,1)
pc.change_gold (-500000000)
end

elseif 2==a1 then
if pc.get_money () <= (999999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999500,2)
pc.change_gold (-1000000000)
end

elseif 3==a1 then
if pc.get_money () <= (1499999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999500,3)
pc.change_gold (-1500000000)
end

elseif 4==a1 then
if pc.get_money () <= (1999999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999500,4)
pc.change_gold (-2000000000)
end
end

elseif 2==a then
say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
local a2 = select (" واحدة250× ", " اثنتان250× ", " ثلاثه250× ", " اربعه250× ", " رجوع ")
if 1==a2 then
if pc.get_money () <= (249999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999250,1)
pc.change_gold (-250000000)
end

elseif 2==a2 then
if pc.get_money () <= (499999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999250,2)
pc.change_gold (-500000000)
end

elseif 3==a2 then
if pc.get_money() <= (749999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999250,3)
pc.change_gold (-750000000)
end

elseif 4==a2 then
if pc.get_money() <= (999999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999250,4)
pc.change_gold (-1000000000)
end
end
elseif 3==a then
say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
local a3 = select (" واحدة100× ", " اثنتان100× ", " ثلاثه100× ", " اربعه100× ", " رجوع ")
if 1==a3 then
if pc.get_money() <= (99999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999100,1)
pc.change_gold (-100000000)
end

elseif 2 == a3 then
if pc.get_money () <= (199999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999100,2)
pc.change_gold (-200000000)
end

elseif 3 == a3 then
if pc.get_money () <= (299999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999100,3)
pc.change_gold (-300000000)
end

elseif 4 == a3 then
if pc.get_money() <= (399999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999100,4)
pc.change_gold (-400000000)
end
return
end
end
end
end
end

Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

it will be easy for people to read the quest if you use the (code)

quest tickets begin
state start begin
when letter begin
send_letter ( " شراء قسائم " ) --Quest Name
end
when button or info begin
say_yellow (" هل تريد شراء قسائم نقود ؟؟ ") --title
say (" ")
say (" ")
say (" ")
say_red (" من هنا يمكنك شراء قسائم نقود ")
say_red (" اختر نوع القسيمه التي تريد شرائها ")
local a = select (" قسيمه ام ال500 "," قسيمه ام ال 250 "," قسيمه ام ال 100 " , " اغلاق ")
if 4==a then return

elseif 1==a then
say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
local a1 = select (" واحدة500× ", " اثنتان500× ", " ثلاثه500× ", " اربعه500× ", " رجوع ")
if 1==a1 then
if pc.get_money () <= (499999999) then --check if player got the money ---
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999500,1)
pc.change_gold (-500000000)
end

elseif 2==a1 then
if pc.get_money () <= (999999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999500,2)
pc.change_gold (-1000000000)
end

elseif 3==a1 then
if pc.get_money () <= (1499999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999500,3)
pc.change_gold (-1500000000)
end

elseif 4==a1 then
if pc.get_money () <= (1999999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999500,4)
pc.change_gold (-2000000000)
end
end

elseif 2==a then
say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
local a2 = select (" واحدة250× ", " اثنتان250× ", " ثلاثه250× ", " اربعه250× ", " رجوع ")
if 1==a2 then
if pc.get_money () <= (249999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999250,1)
pc.change_gold (-250000000)
end

elseif 2==a2 then
if pc.get_money () <= (499999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999250,2)
pc.change_gold (-500000000)
end

elseif 3==a2 then
if pc.get_money() <= (749999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999250,3)
pc.change_gold (-750000000)
end

elseif 4==a2 then
if pc.get_money() <= (999999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999250,4)
pc.change_gold (-1000000000)
end
end
elseif 3==a then
say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
local a3 = select (" واحدة100× ", " اثنتان100× ", " ثلاثه100× ", " اربعه100× ", " رجوع ")
if 1==a3 then
if pc.get_money() <= (99999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999100,1)
pc.change_gold (-100000000)
end

elseif 2 == a3 then
if pc.get_money () <= (199999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999100,2)
pc.change_gold (-200000000)
end

elseif 3 == a3 then
if pc.get_money () <= (299999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999100,3)
pc.change_gold (-300000000)
end

elseif 4 == a3 then
if pc.get_money() <= (399999999) then
chat (" انك لا تملك هذا المبلغ ")
else
pc.give_item2 (999100,4)
pc.change_gold (-400000000)
end
return
end
end
end
end
end

but realy

 

قسيمه ام ال 250

at least use a littile better words  cz i had to lol

Link to comment
Share on other sites

  • Former Staff

yeah i know hahah

 

but i got other problem

 

as you can see the "gold" and the "buy_price" in the client

  <Item vnum="999500" name="ہ؛±« (5¸¸³ة)" gb2312name="قسيمة شراء 500 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="500000000" buy_price="500000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
  <Item vnum="999250" name="ہ؛±« (10¸¸³ة)" gb2312name="قسيمة شراء 250 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="250000000" buy_price="250000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
  <Item vnum="999100" name="±ف±« (50¸¸³ة)" gb2312name="قسيمة شراء 100 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="100000000" buy_price="100000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
   

and in the server

UPDATE `player`.`item_proto` SET `vnum`='999500', `name`='��ȯ��', `locale_name`='����� ���� 500 �����', `type`='0', `subtype`='0', `weight`='0', `size`='1', `antiflag`='0', `flag`='4', `wearflag`='0', `immuneflag`='', `gold`='500000000', `shop_buy_price`='500000000', `refined_vnum`='0', `refine_set`='0', `refine_set2`='0', `magic_pct`='0', `limittype0`='0', `limitvalue0`='0', `limittype1`='0', `limitvalue1`='0', `applytype0`='0', `applyvalue0`='0', `applytype1`='0', `applyvalue1`='0', `applytype2`='0', `applyvalue2`='0', `value0`='0', `value1`='0', `value2`='0', `value3`='0', `value4`='0', `value5`='0', `socket0`='-1', `socket1`='-1', `socket2`='-1', `socket3`='-1', `socket4`='-1', `socket5`='-1', `specular`='0', `socket_pct`='0', `addon_type`='0' WHERE (`vnum`='999500');
UPDATE `player`.`item_proto` SET `vnum`='999250', `name`='��ȯ��', `locale_name`='����� ���� 250 �����', `type`='0', `subtype`='0', `weight`='0', `size`='1', `antiflag`='0', `flag`='4', `wearflag`='0', `immuneflag`='', `gold`='250000000', `shop_buy_price`='250000000', `refined_vnum`='0', `refine_set`='0', `refine_set2`='0', `magic_pct`='0', `limittype0`='0', `limitvalue0`='0', `limittype1`='0', `limitvalue1`='0', `applytype0`='0', `applyvalue0`='0', `applytype1`='0', `applyvalue1`='0', `applytype2`='0', `applyvalue2`='0', `value0`='0', `value1`='0', `value2`='0', `value3`='0', `value4`='0', `value5`='0', `socket0`='-1', `socket1`='-1', `socket2`='-1', `socket3`='-1', `socket4`='-1', `socket5`='-1', `specular`='0', `socket_pct`='0', `addon_type`='0' WHERE (`vnum`='999250');
UPDATE `player`.`item_proto` SET `vnum`='999100', `name`='��ȯ��', `locale_name`='����� ���� 100 �����', `type`='0', `subtype`='0', `weight`='0', `size`='1', `antiflag`='0', `flag`='4', `wearflag`='0', `immuneflag`='', `gold`='100000000', `shop_buy_price`='100000000', `refined_vnum`='0', `refine_set`='0', `refine_set2`='0', `magic_pct`='0', `limittype0`='0', `limitvalue0`='0', `limittype1`='0', `limitvalue1`='0', `applytype0`='0', `applyvalue0`='0', `applytype1`='0', `applyvalue1`='0', `applytype2`='0', `applyvalue2`='0', `value0`='0', `value1`='0', `value2`='0', `value3`='0', `value4`='0', `value5`='0', `socket0`='-1', `socket1`='-1', `socket2`='-1', `socket3`='-1', `socket4`='-1', `socket5`='-1', `specular`='0', `socket_pct`='0', `addon_type`='0' WHERE (`vnum`='999100');

the prices in game are different

 

Link to comment
Share on other sites

  • Former Staff

i don't thinks that the prices are high :/

 

voucher 500kk = 100kk in shops #selling

voucher 250kk = 50kk   in shops #selling

voucher 100kk = 20kk   in shops#selling

 

didn't put them for sell yet only with a quest

 

0sgF8I.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.