[Help Thread] Please post your questions here.

04/13/2013 18:23 Xijezu#1411
Quote:
Originally Posted by selva1982 View Post
my 32 bit operating system over Ede think he is 64 there
someone has CaptainHerlockServer 32 bits to pass me
Quote:
Originally Posted by Xijezu View Post
Since Epic 7 there is no 32bit .exe.
Either install Windows with 64bit or use Epic 6 Serverfiles.

Quote:
Originally Posted by Thelxinoe View Post
I see that your upload server is not on
This doesn't matter.
04/13/2013 23:16 opie1225#1412
hey Guys i have added a teleporter to a secret dungeon im working on, right now i have it teleporting me to the abyss.... can any body help me make it where it charges to teleport here is the function im trying to use(it teleports just dont charge)

function Warp_test()
warp(186985, 160271)
end
local gold = gv("gold")

if gold >= 250000000
then sv("gold",gold -25000000)
update_gold_chaos()
end
04/13/2013 23:31 ThunderNikk#1413
function Warp_test()
local gold = get_value( "gold" )
if gold >= 250000000
warp(186985, 160271)
set_value( "gold", gold - 250000000 )
update_gold_chaos()
else
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end

The title and text at the end I got from another buff charging lua. It should say "Sorry you do not have enough rupees" If it does not I can help you play around with it.

EDIT: The title is for Druid Kart the NPC name, you can change it if you know the string for your NPC.

The text is...

You dont have enough money come back when you arent so poor.
04/14/2013 00:07 opie1225#1414
ok i just copied and pasted ur function and this error is what i got...


[Only registered and activated users can see links. Click Here To Register...]


i added the 'then' and this is what i got...


[Only registered and activated users can see links. Click Here To Register...]


i added the end and this is the finished function ...(checking now to see if it works
function Warp_Ecstacy()
end
local gold = get_value( "gold" )
if gold >= 250000000
then
warp(186985, 160271)
set_value( "gold", gold - 250000000 )
update_gold_chaos()
else
dlg_title( "@90702501" )
dlg_text( "@90702504" )
end
04/14/2013 00:12 ThunderNikk#1415
Oh sorry yeah should work with then but your images are not loading for me.

function Warp_Ecstacy()
end

Shouldn't need this "end" though
04/14/2013 00:19 opie1225#1416
well when i add the 'then' it tells me

[Only registered and activated users can see links. Click Here To Register...]

and when i add the end that makes it so if you log in the game with enough rupees you auto teleport to the abyss lol and it takes your money
04/14/2013 00:26 ThunderNikk#1417
Try it like this...

Code:
function Warp_Ecstacy()
     local gold = get_value( "gold" )
     if gold >= 250000000
          then
          warp(186985, 160271)
          set_value( "gold", gold - 250000000 )
          update_gold_chaos()
     else
          dlg_title( "@90702501" )
          dlg_text( "@90702504" )
     end
end
Quote:
and when i add the end that makes it so if you log in the game with enough rupees you auto teleport to the abyss lol and it takes your money
The function should require calling from an NPC dlg menu, Where are you putting this fuction?
04/14/2013 00:32 opie1225#1418
Quote:
The function should require calling from an NPC dlg menu, Where are you putting this fuction?
I am putting in the script that i made for my NPC in the dlg_menu but what i think happen is when i closed out the function it made it where it looked for the rupees at log in lol let me try it with the last way u suggested
04/14/2013 00:41 ThunderNikk#1419
Put it after the NPC Function not in the dlg menu like this...

Code:
Function NPC_Warp_To_New_Dungeon_Contact()
     dlg_title( "Warp Master" )
     dlg_menu( "Warp To Secret Dungeon", "Warp_Ecstacy()" )
end

function Warp_Ecstacy()
     local gold = get_value( "gold" )
     if gold >= 250000000
          then
          warp(186985, 160271)
          set_value( "gold", gold - 250000000 )
          update_gold_chaos()
     else
          dlg_title( "@90702501" )
          dlg_text( "@90702504" )
     end
end
04/14/2013 01:10 opie1225#1420
Quote:
Originally Posted by thndr View Post
Put it after the NPC Function not in the dlg menu like this...

Code:
Function NPC_Warp_To_New_Dungeon_Contact()
     dlg_title( "Warp Master" )
     dlg_menu( "Warp To Secret Dungeon", "Warp_Ecstacy()" )
end

function Warp_Ecstacy()
     local gold = get_value( "gold" )
     if gold >= 250000000
          then
          warp(186985, 160271)
          set_value( "gold", gold - 250000000 )
          update_gold_chaos()
     else
          dlg_title( "@90702501" )
          dlg_text( "@90702504" )
     end
end


that is what i meant but mine looks a little different because i have added several different menus and custom dlg_text in each menu but it works now that i took out the
'end' in
function Warp_Ecstacy()
end
and put it at the end of the entire function once again thank you thndr
04/14/2013 01:21 ThunderNikk#1421
Quote:
Originally Posted by opie1225 View Post
that is what i meant but mine looks a little different because i have added several different menus and custom dlg_text in each menu but it works now that i took out the
'end' in
function Warp_Ecstacy()
end
and put it at the end of the entire function once again thank you thndr
Yeah you were ending the function right after it began, then the other script was just running wild on its own, that's why it happened at server init or log on.

And yeah I expected yours to look a little more extravagant with more NPC choices, I was just posting it as an example.

Anyway you are welcome, I am glad it is working for you now.
04/14/2013 02:08 opie1225#1422
im thinking about opening it up to a few extra friends (still got a few kinks to work out but every thing is coming along nicely[with the help of Epvp and you Thndr] )any idea on a good registration page?
if i do i doubt everyone will want me to know their password lol
04/14/2013 03:51 ThunderNikk#1423
Quote:
Originally Posted by opie1225 View Post
im thinking about opening it up to a few extra friends (still got a few kinks to work out but every thing is coming along nicely[with the help of Epvp and you Thndr] )any idea on a good registration page?
if i do i doubt everyone will want me to know their password lol
I set up this little tid bit from ismokedrow without too much difficulty...

[Only registered and activated users can see links. Click Here To Register...]
04/14/2013 03:53 selva1982#1424
please someone help me with this error which can be


GameDB ERRO :Invalid columm name guild_id

servidor rappelz online
04/14/2013 04:08 ThunderNikk#1425
Need more information, your thumbnails you attach are too small to read.

What server files are you working with?

What other stuff?