The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Got problem
Author Message
Thysis
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2015
Reputation: 0



Post: #1
Got problem
Hi i got a problem whit my script
After level 10 each point you spend most cost a % of money and the higher your lvl more it cost but my problem its when play spend point it dosent pay for the point can someone help me plz



[FUNCTION goldtopackall]
IF (<SRC.FINDLAYER.29.findid.i_gold.uid>)

SRC.FINDLAYER.29.findid.i_gold.cont=<SRC.FINDLAYER.21.uid>
goldtopackall

ENDIF

[FUNCTION goldtopack]
var.counter=<eval <args>>
var.found=(<var.counter> - <SRC.FINDLAYER.29.findid.i_gold.amount>)

IF (<var.found> > 0)

SRC.FINDLAYER.29.findid.i_gold.cont=<SRC.FINDLAYER.21.uid>
goldtopack <var.found>

ELSE //not entire pile needed

var.left=(0 - <var.found>)

IF (<var.left>)
SRC.FINDLAYER.29.findid.i_gold.amount <var.left>
ELSE
SRC.FINDLAYER.29.findid.i_gold.remove
ENDIF

SRC.newitem i_gold
SRC.act.amount <args>
SRC.act.cont=<SRC.FINDLAYER.21.uid>

ENDIF

[FUNCTION payamount]

var.counter=<eval <args>>

IF (<var.counter> > 65000)
SRC.consume 65000 i_gold
var.counter=(<var.counter> - 65000)
payamount <var.counter>
ELSE
SRC.consume <args> i_gold
ENDIF
[FUNCTION deshabiller]
VAR.MYBODY=<BODY>
BODY c_rabbit
BODY=<VAR.MYBODY>

[FUNCTION debogage]
RESURRECT
IF <SRC.FINDID.i_rune_d_instinct_de_combat_mineur>
SRC.FINDID.i_rune_d_instinct_de_combat_mineur.REMOVE
ENDIF
IF <SRC.FINDID.i_rune_d_instinct_de_combat_majeur>
SRC.FINDID.i_rune_d_instinct_de_combat_majeur.REMOVE
ENDIF
IF <SRC.FINDID.i_rune_d_accroissement_magique>
SRC.FINDID.i_rune_d_accroissement_magique.REMOVE
ENDIF
IF <SRC.FINDID.i_rune_force>
SRC.FINDID.i_rune_force.REMOVE
ENDIF
IF <SRC.FINDID.i_rune_dexterite>
SRC.FINDID.i_rune_dexterite.REMOVE
ENDIF
IF <SRC.FINDID.i_rune_clairvoyance>
SRC.FINDID.i_rune_clairvoyance.REMOVE
ENDIF
SRC.FINDLAYER.32.REMOVE
SRC.FINDLAYER.40.REMOVE
SRC.DESHABILLER
SRC.MAGERY=<EVAL <SRC.TAG.MAGIEPURE>*10>
SRC.TACTICS=<EVAL <SRC.TAG.TACTICSPURE>*10>
SRC.FENCING=<EVAL <SRC.TAG.FENCINGPURE>*10>
SRC.MACEFIGHTING=<EVAL <SRC.TAG.MACEFIGHTINGPURE>*10>
SRC.SWORDSMANSHIP=<EVAL <SRC.TAG.SWORDSMANSHIPPURE>*10>
SRC.PARRYING=<EVAL <SRC.TAG.PARRYINGPURE>*10>
SRC.HEALING=<EVAL <SRC.TAG.HEALINGPURE>*10>
SRC.WRESTLING=<EVAL <SRC.TAG.WRESTLINGPURE>*10>
SRC.MEDITATION=<EVAL <SRC.TAG.MEDITATIONPURE>*10>
SRC.MAGICRESISTANCE=<EVAL <SRC.TAG.MAGICRESISTANCEPURE>*10>
SRC.ARCHERY=<EVAL <SRC.TAG.ARCHERYPURE>*10>
SRC.ANATOMY=<EVAL <SRC.TAG.ANATOMYPURE>*10>
SRC.EvaluatingIntel=<EVAL <SRC.TAG.EvaluatingIntelPURE>*10>
SRC.STR=<EVAL <SRC.TAG.FORPURE>>
SRC.DEX=<EVAL <SRC.TAG.DEXPURE>>
SRC.INT=<EVAL <SRC.TAG.INTPURE>>

[FUNCTION GESTION]
SRC.DIALOG gestion_personnage

[DIALOG gestion_personnage]
0, 0
PAGE 0
gumppic 507 267 200
gumppic 507 207 200
gumppic 507 79 200
gumppic 463 267 200
gumppic 463 206 200
gumppic 463 79 200
gumppic 335 79 200
gumppic 335 207 200
gumppic 335 268 200
gumppic 207 269 200
gumppic 207 207 200
gumppic 207 79 200
gumppic 163 395 204
gumppic 207 395 233
gumppic 634 395 205
gumppic 634 79 203
gumppic 634 35 207
gumppic 207 35 201
gumppic 163 79 202
gumppic 163 35 206
text 310 55 1152 0
text 203 91 1152 1
text 203 125 995 2
text 203 144 995 3
text 203 164 995 4
button 355 133 2117 2118 1 0 1
button 355 152 2117 2118 1 0 2
button 355 170 2117 2118 1 0 3
text 314 127 10 5
text 314 145 10 6
text 314 165 10 7
text 203 195 1152 8
text 203 347 995 9 //guerison
text 393 227 995 10 //magie
text 393 247 995 11 //meditation
text 393 267 995 12 //resistance
text 203 247 995 13 //estoc
text 203 267 995 14 //choc
text 203 287 995 15 //taille
text 203 307 995 16 //esquive
text 203 367 995 17 //lutte
text 393 287 995 18 //tectique
text 393 307 995 19 //tir a l arc
button 358 252 2117 2118 1 0 4
button 358 271 2117 2118 1 0 5
button 358 290 2117 2118 1 0 6
button 358 309 2117 2118 1 0 7 //esquive
button 358 347 2117 2118 1 0 8 //guerison
button 358 366 2117 2118 1 0 9 //lutte
button 638 235 2117 2118 1 0 10 //magie
button 638 254 2117 2118 1 0 11 //meditation
button 638 273 2117 2118 1 0 12 //tir a l arc *
button 638 292 2117 2118 1 0 13 //tectique *
button 638 311 2117 2118 1 0 14 //tir a l arc
button 358 233 2117 2118 1 0 16 //Anatomie
button 358 328 2117 2118 1 0 17 //eval intellect
text 382 167 1152 20
text 382 367 1152 21 //366
text 314 247 10 22 //estoc
text 314 267 10 23 //choc
text 314 287 10 24 //taille
text 314 307 10 25 //esquive
text 314 347 10 26 //guerison
text 314 367 10 27 //lutte
text 580 227 10 28 //magie
text 580 247 10 29 //meditation
text 580 267 10 30 //tactique
text 580 287 10 31 //resistance
text 580 307 10 32 //tir a l arc
text 203 227 995 33 //anatomie
text 314 227 10 34 //anatomie
text 203 327 995 35 //eval
text 314 327 10 36 //eval

button 400 397 1150 1151 1 0 15

[DIALOG gestion_personnage TEXT]
Feuille de gestion du personnage
Statistiques
Force
Dexterite
Intelligence
<src.str>
<src.dex>
<src.int>
Competences
Guerison
Magie
Meditation
Resistance aux sortileges
Armes d'estoc
Armes de choc
Armes de taille
Esquive
Lutte
Tactique
Tir a l'arc
Il vous reste <EVAL <SRC.TAG.PTSSTAT>> points de statistiques
Il vous reste <EVAL <SRC.TAG.PTSSKILLS>> points de competences
<SRC.FENCING>
<SRC.MACEFIGHTING>
<SRC.SWORDSMANSHIP>
<SRC.PARRYING>
<SRC.HEALING>
<SRC.WRESTLING>
<SRC.MAGERY>
<SRC.MEDITATION>
<SRC.MAGICRESISTANCE>
<SRC.TACTICS>
<SRC.ARCHERY>
Anatomie
<SRC.ANATOMY>
Eval. Intellect
<SRC.EvaluatingIntel>

[DIALOG gestion_personnage BUTTON]
on=1
IF <EVAL <SRC.TAG.PTSSTAT>> > 0
SRC.TAG.PTSSTAT=<EVAL <SRC.TAG.PTSSTAT> - 1>
SRC.debogage
SRC.STR=<EVAL <SRC.TAG.FORPURE>+1>
SRC.TAG.FORPURE=<SRC.STR>
SRC.GESTION
ENDIF
ENDIF
on=2
IF <EVAL <SRC.TAG.PTSSTAT>> > 0
SRC.TAG.PTSSTAT=<EVAL <SRC.TAG.PTSSTAT> - 1>
SRC.debogage
SRC.DEX=<EVAL <SRC.TAG.DEXPURE>+1>
SRC.TAG.DEXPURE=<SRC.DEX>
SRC.GESTION
ENDIF
ENDIF
on=3
IF <EVAL <SRC.TAG.PTSSTAT>> > 0
SRC.TAG.PTSSTAT=<EVAL <SRC.TAG.PTSSTAT> - 1>
SRC.debogage
SRC.INT=<EVAL <SRC.TAG.INTPURE>+1>
SRC.TAG.INTPURE=<SRC.INT>
SRC.GESTION
ENDIF
ENDIF
on=4
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.FENCING=<EVAL <SRC.FENCING>+10>
SRC.TAG.FENCINGPURE=<EVAL <SRC.FENCING>/10>
SRC.GESTION
ENDIF
ENDIF
on=5
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.MACEFIGHTING=<EVAL <SRC.MACEFIGHTING>+10>
SRC.TAG.MACEFIGHTINGPURE=<EVAL <SRC.MACEFIGHTING>/10>
SRC.GESTION
ENDIF
ENDIF
on=6
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.SWORDSMANSHIP=<EVAL <SRC.SWORDSMANSHIP>+10>
SRC.TAG.SWORDSMANSHIPPURE=<EVAL <SRC.SWORDSMANSHIP>/10>
SRC.GESTION
ENDIF
ENDIF
on=7
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.PARRYING=<EVAL <SRC.PARRYING>+10>
SRC.TAG.PARRYINGPURE=<EVAL <SRC.PARRYING>/10>
SRC.GESTION
ENDIF
ENDIF
on=8
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.HEALING=<EVAL <SRC.HEALING>+10>
SRC.TAG.HEALINGPURE=<EVAL <SRC.HEALING>/10>
SRC.GESTION
ENDIF
ENDIF
on=9
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.WRESTLING=<EVAL <SRC.WRESTLING>+10>
SRC.TAG.WRESTLINGPURE=<EVAL <SRC.WRESTLING>/10>
SRC.GESTION
ENDIF
ENDIF
on=10
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.MAGERY=<EVAL <SRC.MAGERY>+10>
SRC.TAG.MAGIEPURE=<EVAL <SRC.MAGERY>/10>
SRC.GESTION
ENDIF
ENDIF
on=11
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.MEDITATION=<EVAL <SRC.MEDITATION>+10>
SRC.TAG.MEDITATIONPURE=<EVAL <SRC.MEDITATION>/10>
SRC.GESTION
ENDIF
ENDIF
on=12
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.MAGICRESISTANCE=<EVAL <SRC.MAGICRESISTANCE>+10>
SRC.TAG.MAGICRESISTANCEPURE=<EVAL <SRC.MAGICRESISTANCE>/10>
SRC.GESTION
ENDIF
ENDIF
on=13
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.TACTICS=<EVAL <SRC.TACTICS>+10>
SRC.TAG.TACTICSPURE=<EVAL <SRC.TACTICS>/10>
SRC.GESTION
ENDIF
ENDIF
on=14
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.ARCHERY=<EVAL <SRC.ARCHERY>+10>
SRC.TAG.ARCHERYPURE=<EVAL <SRC.ARCHERY>/10>
SRC.GESTION
ENDIF
ENDIF
on=15
on=16
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.ANATOMY=<EVAL <SRC.ANATOMY>+10>
SRC.TAG.ANATOMYPURE=<EVAL <SRC.ANATOMY>/10>
SRC.GESTION
ENDIF
ENDIF
on=17
IF <EVAL <SRC.TAG.PTSSKILLS>> > 0
SRC.TAG.PTSSKILLS=<EVAL <SRC.TAG.PTSSKILLS> - 1>
SRC.debogage
SRC.EvaluatingIntel=<EVAL <SRC.EvaluatingIntel>+10>
SRC.TAG.EvaluatingIntelPURE=<EVAL <SRC.EvaluatingIntel>/10>
SRC.GESTION
ENDIF
ENDIF
04-14-2016 05:41 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Got problem - Thysis - 04-14-2016 05:41 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)